From: ceriel Date: Mon, 21 Sep 1987 13:21:50 +0000 (+0000) Subject: fix in error reporting X-Git-Tag: release-5-5~3840 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=45c7ab1938d980831f2e56836bc7e2f56d72d1e7;p=ack.git fix in error reporting --- diff --git a/util/cpp/error.c b/util/cpp/error.c index 8bafd6b5f..4ef56a135 100644 --- a/util/cpp/error.c +++ b/util/cpp/error.c @@ -20,7 +20,10 @@ int err_occurred; err_hdr(s) char *s; { - fprint(ERROUT, "\"%s\", line %d: %s", FileName, LineNumber, s); + if (FileName) { + fprint(ERROUT, "\"%s\", line %d: %s", FileName, LineNumber, s); + } + else fprint(ERROUT, s); } /*VARARGS1*/