Skip to content

Commit b54ab3a

Browse files
Merge pull request #53 from libwww-perl/silent-warning
silence "Use of uninitialized value in lc" warning
2 parents c16a3c1 + 4f95d2c commit b54ab3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/URI/file/Base.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ sub _file_is_localhost
6565
return 1 if $host eq "localhost";
6666
eval {
6767
require Net::Domain;
68-
lc(Net::Domain::hostfqdn()) eq $host ||
69-
lc(Net::Domain::hostname()) eq $host;
68+
lc(Net::Domain::hostfqdn() || '') eq $host ||
69+
lc(Net::Domain::hostname() || '') eq $host;
7070
};
7171
}
7272

0 commit comments

Comments
 (0)