forked from extern/shorewall_code
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:
parent
e93ecfd0e6
commit
5a21063f4b
@ -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 ( $$ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user