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 94fb15bec3
commit 3a9fc7ceb1

View File

@ -3050,7 +3050,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\"";
} }
} }