From: ceriel Date: Wed, 1 Nov 1989 09:46:16 +0000 (+0000) Subject: the error() routine did not set err_occurred! X-Git-Tag: release-5-5~2120 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=142a703f77c7a02097382981e2fd2db9e61be3cf;p=ack.git the error() routine did not set err_occurred! --- 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);