Correct formatting of empty arguments to add_commands

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-07-18 09:45:59 -07:00
parent bfd69c33c7
commit a80b04bd74

View File

@ -728,6 +728,8 @@ sub format_option( $$ ) {
sub format_rule( $$;$ ) {
my ( $chainref, $ruleref, $suppresshdr ) = @_;
return $ruleref->{cmd} if exists $ruleref->{cmd};
my $rule = $suppresshdr ? '' : "-A $chainref->{name}";
for ( qw/ p i s o d / ) {