[Libreoffice-commits] core.git: solenv/bin

Christian Lohmaier lohmaier+LibreOffice at googlemail.com
Thu Apr 16 08:05:39 PDT 2015


 solenv/bin/modules/installer/control.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ae677af0440037b28a69c6ca4ea90de821435b85
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Thu Apr 16 17:01:42 2015 +0200

    '0' is a not the same as undefined or empty value
    
    Change-Id: Ie077fc273601607cba72099d650c6774f08240fb

diff --git a/solenv/bin/modules/installer/control.pm b/solenv/bin/modules/installer/control.pm
index 061cbca..fd84a3b 100644
--- a/solenv/bin/modules/installer/control.pm
+++ b/solenv/bin/modules/installer/control.pm
@@ -279,7 +279,7 @@ sub check_system_environment
 
     for my $key ( @environmentvariables )
     {
-        $variables{$key} = $ENV{$key} || "";
+        $variables{$key} = defined($ENV{$key}) ? $ENV{$key} : "";
 
         if ( $variables{$key} eq "" )
         {


More information about the Libreoffice-commits mailing list