diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-15 00:26:25 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-15 00:26:25 +0000 |
commit | 1d764f7bf7813b621a93f8fc728b2977d7fe70cc (patch) | |
tree | 7d7088778da50b533ec964813529a8a6bd9375ee /utils | |
parent | bdf75f07aac9d8d166f9733b71ebb2f0a8a538e1 (diff) | |
download | netsurf-1d764f7bf7813b621a93f8fc728b2977d7fe70cc.tar.gz netsurf-1d764f7bf7813b621a93f8fc728b2977d7fe70cc.tar.bz2 |
Fix warning
svn path=/trunk/netsurf/; revision=12056
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/svn-testament.pl | 2 |
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; } |