Fix warning

svn path=/trunk/netsurf/; revision=12056
This commit is contained in:
Chris Young 2011-03-15 00:26:25 +00:00
parent bdf75f07aa
commit 1d764f7bf7

View File

@ -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;
}