preproc: BR 2222615: fix segfault on bogus %ifmacro

BR 2222615: Fix segmentation fault on %ifmacro without an argument.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-11-04 14:24:34 -08:00
parent 79ced5ad36
commit 0b7d19d35c

View File

@ -1584,7 +1584,6 @@ static bool if_condition(Token * tline, enum preproc_token ct)
bool found = false;
MMacro searching, *mmac;
tline = tline->next;
skip_white_(tline);
tline = expand_id(tline);
if (!tok_type_(tline, TOK_ID)) {