fix in error reporting
authorceriel <none@none>
Mon, 21 Sep 1987 13:21:50 +0000 (13:21 +0000)
committerceriel <none@none>
Mon, 21 Sep 1987 13:21:50 +0000 (13:21 +0000)
util/cpp/error.c

index 8bafd6b..4ef56a1 100644 (file)
@@ -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*/