Allow for adding zero-length command to rules array

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6946 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-23 22:48:23 +00:00
parent 1fa2db41a1
commit 46abc9b397

View File

@ -1836,7 +1836,7 @@ sub assure_cat_state() {
sub emitr( $ ) {
my $rule = $_[0];
if ( substr( $rule, 0, 2 ) ne '-A' ) {
if ( ! $rule || substr( $rule, 0, 2 ) ne '-A' ) {
#
# A command rather than a rule
#