From 3a9fc7ceb17473488b356e59000eacd3ff693dce 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 a1087a147..3ee4ffb41 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -3050,7 +3050,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\""; } }