mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 23:53:30 +01:00
Minor cleanup of split_columns()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8507c97b5a
commit
8b90827611
@ -2232,7 +2232,7 @@ sub split_list4( $ ) {
|
|||||||
sub split_columns( $ ) {
|
sub split_columns( $ ) {
|
||||||
my ($list) = @_;
|
my ($list) = @_;
|
||||||
|
|
||||||
return split ' ', $list unless $list =~ /\(/;
|
return split ' ', $list unless $list =~ /[()]/;
|
||||||
|
|
||||||
my @list1 = split ' ', $list;
|
my @list1 = split ' ', $list;
|
||||||
my @list2;
|
my @list2;
|
||||||
@ -2273,9 +2273,7 @@ sub split_columns( $ ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unless ( $opencount == 0 ) {
|
fatal_error "Mismatched parentheses ($list)" unless $opencount == 0;
|
||||||
fatal_error "Mismatched parentheses ($list)";
|
|
||||||
}
|
|
||||||
|
|
||||||
@list2;
|
@list2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user