summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-11-04 14:24:34 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-11-06 09:33:16 -0800
commit0b7d19d35cd6a042bb4c0fa89a658c8cec0a29f1 (patch)
tree7fb13b1967f8bc36264576625d87281ae5836bfb
parent79ced5ad3652b1ef9094538efe1e5c09e5d092da (diff)
downloadnasm-0b7d19d35cd6a042bb4c0fa89a658c8cec0a29f1.tar.gz
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>
-rw-r--r--preproc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index e5b5ab3b..c8998288 100644
--- a/preproc.c
+++ b/preproc.c
@@ -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)) {