0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

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 e2dea103db
commit ec86b6ffe3

View File

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