From 45c7ab1938d980831f2e56836bc7e2f56d72d1e7 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 21 Sep 1987 13:21:50 +0000 Subject: [PATCH] fix in error reporting --- util/cpp/error.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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*/