From 7a9b25a7a1202a3da71c22f34cd2f1efce64a586 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 25 Oct 2002 10:46:52 +0000 Subject: Only take default parameters if they are not set in pingd.conf (as opposed to set to undef) --- Echolot/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Echolot/Config.pm') diff --git a/Echolot/Config.pm b/Echolot/Config.pm index 2e386b0..dcb48f4 100644 --- a/Echolot/Config.pm +++ b/Echolot/Config.pm @@ -1,7 +1,7 @@ package Echolot::Config; # (c) 2002 Peter Palfrader -# $Id: Config.pm,v 1.41 2002/09/21 03:24:41 weasel Exp $ +# $Id: Config.pm,v 1.42 2002/10/25 10:46:52 weasel Exp $ # =pod @@ -225,7 +225,7 @@ sub init($) { } for my $key (keys %$DEFAULT) { - $CONFIG->{$key} = $DEFAULT->{$key} unless defined $CONFIG->{$key}; + $CONFIG->{$key} = $DEFAULT->{$key} unless exists $CONFIG->{$key}; }; $CONFIG->{'homedir'} = $params->{'basedir'} unless (defined $CONFIG->{'homedir'}); $CONFIG->{'verbose'} = $params->{'verbose'} if ($params->{'verbose'}); -- cgit v1.2.3