projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crash while compiling dhrystone
[fw/sdcc]
/
src
/
SDCCerr.c
diff --git
a/src/SDCCerr.c
b/src/SDCCerr.c
index 61f0b5e4e4fd1ad70e29e59b104bdbdadf558327..a3e4c31efc9de0ccdb286c89bdc688d79e971933 100644
(file)
--- a/
src/SDCCerr.c
+++ b/
src/SDCCerr.c
@@
-157,7
+157,7
@@
void werror (int errNum, ... )
if ( ErrTab[errNum].errType== ERROR )
fatalError++ ;
- if ( lineno ) {
+ if (
filename &&
lineno ) {
fprintf(stderr,"%s(%d):",filename,lineno);
}
va_start(marker,errNum);