summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/svn-testament.pl2
1 files changed, 1 insertions, 1 deletions
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;
}