the error() routine did not set err_occurred!

This commit is contained in:
ceriel 1989-11-01 09:46:16 +00:00
parent c2a260ba68
commit 142a703f77
2 changed files with 1 additions and 1 deletions

View file

@ -11,7 +11,6 @@
extern char *symbol2str();
LLmessage(tk) {
err_occurred = 1;
if (tk < 0)
error("garbage at end of line");
else if (tk) {

View file

@ -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);