Fix default value bug

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5723 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-28 14:53:50 +00:00
parent e93ecfd0e6
commit 5a21063f4b

View File

@ -218,7 +218,7 @@ sub find_file($)
sub default ( $$ ) {
my ( $var, $val ) = @_;
$config{$var} = $val unless defined $config{$var};
$config{$var} = $val unless defined $config{$var} && $config{$var} ne '';
}
sub default_yes_no ( $$ ) {