From d60029bd3764d818d500e056a7b3e17ed0067731 Mon Sep 17 00:00:00 2001 From: kvigor Date: Tue, 29 Feb 2000 22:28:48 +0000 Subject: [PATCH] Fix crash while compiling dhrystone git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@141 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCerr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5