_read_config: Check host definedness, not existence

This commit is contained in:
Richard Hansen 2024-08-30 17:19:55 -04:00
parent a18efcbe32
commit ac67c04f13

View file

@ -1893,7 +1893,7 @@ sub _read_config {
} }
} }
%passwords = (); %passwords = ();
if (exists($locals{'host'})) { if (defined($locals{'host'})) {
$args[0] = (@args ? "$args[0]," : '') . $locals{host}; $args[0] = (@args ? "$args[0]," : '') . $locals{host};
} }
## accumulate globals ## accumulate globals