Fix INCLUDE inside an ?IF ... ?ENDIF

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-10 17:27:23 -07:00
parent 25125c47e4
commit 0b5e30aa7b

View File

@ -2265,7 +2265,7 @@ sub read_a_line(;$$$$) {
}
}
if ( @ifstack ) {
if ( @ifstack > $ifstack ) {
$currentlinenumber = 'EOF';
fatal_error "Missing ?ENDIF to match the ?IF at line $ifstack[-1]->[3]";
}