mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 04:12:03 +03:00
Fix warning
svn path=/trunk/netsurf/; revision=12056
This commit is contained in:
parent
bdf75f07aa
commit
1d764f7bf7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user