From 350f9a1e21d17411587f70de1a6ed9be9f436e82 Mon Sep 17 00:00:00 2001 From: Keith Kanios Date: Fri, 1 Oct 2010 20:04:18 -0500 Subject: [PATCH] preproc.c: fixed error handling within PP_ENDIF --- preproc.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.11.4.GIT