From 3711e64d7136aa688df3b79b57bf5708458734f0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 7 Apr 2010 14:38:29 -0700 Subject: [PATCH] Fix for 0 values propagated to the script Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 985a03c7b..b69f425d6 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3106,7 +3106,8 @@ sub get_configuration( $ ) { # sub propagateconfig() { for my $option ( @propagateconfig ) { - my $value = $config{$option} || ''; + my $value = $config{$option}; + $value = '' unless defined $value; emit "$option=\"$value\""; } }