From 8b90827611cde62cabc0946058dbe83ece179db6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 22 Mar 2017 10:18:07 -0700 Subject: [PATCH] Minor cleanup of split_columns() Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index a20461ba7..51f6b1177 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2232,7 +2232,7 @@ sub split_list4( $ ) { sub split_columns( $ ) { my ($list) = @_; - return split ' ', $list unless $list =~ /\(/; + return split ' ', $list unless $list =~ /[()]/; my @list1 = split ' ', $list; my @list2; @@ -2273,9 +2273,7 @@ sub split_columns( $ ) { } } - unless ( $opencount == 0 ) { - fatal_error "Mismatched parentheses ($list)"; - } + fatal_error "Mismatched parentheses ($list)" unless $opencount == 0; @list2; }