From: kvigor Date: Tue, 29 Feb 2000 22:28:48 +0000 (+0000) Subject: Fix crash while compiling dhrystone X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d60029bd3764d818d500e056a7b3e17ed0067731;p=fw%2Fsdcc Fix crash while compiling dhrystone git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@141 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCerr.c b/src/SDCCerr.c index 61f0b5e4..a3e4c31e 100644 --- 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);