summaryrefslogtreecommitdiffstats
path: root/perl-install/network.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network.pm')
-rw-r--r--perl-install/network.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network.pm b/perl-install/network.pm
index 31fcd7e0f..c5d1b6a97 100644
--- a/perl-install/network.pm
+++ b/perl-install/network.pm
@@ -107,6 +107,7 @@ sub add2hosts {
log::l("writing host information to $file");
open F, ">$file" or die "cannot write $file: $!";
while (my ($ip, $v) = each %l) {
+ $ip or next;
print F "$ip";
if ($v =~ /^\s/) {
print F $v;