public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db64e9
)
fix in error reporting
author
ceriel
<none@none>
Mon, 21 Sep 1987 13:21:50 +0000
(13:21 +0000)
committer
ceriel
<none@none>
Mon, 21 Sep 1987 13:21:50 +0000
(13:21 +0000)
util/cpp/error.c
patch
|
blob
|
history
diff --git
a/util/cpp/error.c
b/util/cpp/error.c
index
8bafd6b
..
4ef56a1
100644
(file)
--- 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*/