summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShoichi Kaji <skaji@cpan.org>2018-04-22 13:29:34 +0200
committerKaren Etheridge <ether@cpan.org>2018-04-22 14:14:52 +0200
commit4f95d2c57e993be8ec924296ca1c99fc60e7a5a8 (patch)
tree69bfe055c216c6208921f72af9ad257df16c5dc1
parentc16a3c1c3f2f37ff03be3813258cdfe3118b140a (diff)
downloaduri-4f95d2c57e993be8ec924296ca1c99fc60e7a5a8.tar.gz
silent "Use of uninitialized value in lc" warning
-rw-r--r--lib/URI/file/Base.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/URI/file/Base.pm b/lib/URI/file/Base.pm
index fcf7dba..8f11dda 100644
--- a/lib/URI/file/Base.pm
+++ b/lib/URI/file/Base.pm
@@ -65,8 +65,8 @@ sub _file_is_localhost
return 1 if $host eq "localhost";
eval {
require Net::Domain;
- lc(Net::Domain::hostfqdn()) eq $host ||
- lc(Net::Domain::hostname()) eq $host;
+ lc(Net::Domain::hostfqdn() || '') eq $host ||
+ lc(Net::Domain::hostname() || '') eq $host;
};
}