summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2010-10-01 20:04:18 -0500
committerKeith Kanios <keith@kanios.net>2010-10-01 20:04:18 -0500
commit350f9a1e21d17411587f70de1a6ed9be9f436e82 (patch)
treefe0b56081eb26dbfaa08765de6a7964f08a74aed
parent3085f73f85fd07a975efc152cf31373d282c4039 (diff)
downloadnasm-350f9a1e21d17411587f70de1a6ed9be9f436e82.tar.gz
preproc.c: fixed error handling within PP_ENDIF
-rw-r--r--preproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/preproc.c b/preproc.c
index c6ee4bd6..572aaa4e 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2811,6 +2811,7 @@ issue_error:
"trailing garbage after `%%endif' ignored");
if ((defining == NULL) || (defining->type != EXP_IF)) {
error(ERR_NONFATAL, "`%%endif': no matching `%%if'");
+ return DIRECTIVE_FOUND;
}
ed = defining;
defining = ed->prev;