From 142a703f77c7a02097382981e2fd2db9e61be3cf Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 1 Nov 1989 09:46:16 +0000 Subject: [PATCH] the error() routine did not set err_occurred! --- util/cpp/LLmessage.c | 1 - util/cpp/error.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cpp/LLmessage.c b/util/cpp/LLmessage.c index 78d595644..24af88338 100644 --- a/util/cpp/LLmessage.c +++ b/util/cpp/LLmessage.c @@ -11,7 +11,6 @@ extern char *symbol2str(); LLmessage(tk) { - err_occurred = 1; if (tk < 0) error("garbage at end of line"); else if (tk) { diff --git a/util/cpp/error.c b/util/cpp/error.c index 9dd1922f3..4662b53cb 100644 --- a/util/cpp/error.c +++ b/util/cpp/error.c @@ -35,6 +35,7 @@ error(va_alist) va_list ap; err_hdr(""); + err_occurred = 1; va_start(ap); fmt = va_arg(ap, char *); doprnt(ERROUT, fmt, ap); -- 2.34.1