diff --git a/utils/svn-testament.pl b/utils/svn-testament.pl index 2412064dd..6196e5acf 100755 --- a/utils/svn-testament.pl +++ b/utils/svn-testament.pl @@ -84,7 +84,7 @@ $qroot =~ s/"/\\"/g; my $hostname = $ENV{HOSTNAME}; -if ( $hostname eq "" ) { # Try hostname command if env-var empty +if ( !defined ( $hostname ) ) { # Try hostname command if env-var empty $hostname = `hostname`; chomp $hostname; }