Fix for 0 values propagated to the script

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-04-07 14:38:29 -07:00
parent 3092a85999
commit 3711e64d71

View File

@ -3106,7 +3106,8 @@ sub get_configuration( $ ) {
# #
sub propagateconfig() { sub propagateconfig() {
for my $option ( @propagateconfig ) { for my $option ( @propagateconfig ) {
my $value = $config{$option} || ''; my $value = $config{$option};
$value = '' unless defined $value;
emit "$option=\"$value\""; emit "$option=\"$value\"";
} }
} }