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:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user