mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Allow '?IF 0'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
ee28638604
commit
e8a4728981
@ -1911,7 +1911,7 @@ sub process_conditional( $$$$ ) {
|
||||
my ( $lastkeyword, $prioromit, $included, $lastlinenumber ) = @ifstack ? @{$ifstack[-1]} : ('', 0, 0, 0 );
|
||||
|
||||
if ( $keyword =~ /^IF/ ) {
|
||||
cond_error( "Missing IF expression" , $filename, $linenumber ) unless $expression;
|
||||
cond_error( "Missing IF expression" , $filename, $linenumber ) unless supplied $expression;
|
||||
my $nextomitting = $omitting || ! evaluate_expression( $expression , $filename, $linenumber );
|
||||
push @ifstack, [ 'IF', $omitting, ! $nextomitting, $linenumber ];
|
||||
$omitting = $nextomitting;
|
||||
|
Loading…
Reference in New Issue
Block a user