From: slade_rich Date: Thu, 5 Feb 2004 23:02:58 +0000 (+0000) Subject: Fixed problem where files that only contain 'const unsigned char' would caused SDCC... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7d62747bb2c0eabe49ab9833343b028f2676c5c3;p=fw%2Fsdcc Fixed problem where files that only contain 'const unsigned char' would caused SDCC to crash. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3169 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/pic/pcode.c b/src/pic/pcode.c index 8681fdd6..74715026 100644 --- a/src/pic/pcode.c +++ b/src/pic/pcode.c @@ -1594,9 +1594,12 @@ void pBlockConvert2ISR(pBlock *pb) void movepBlock2Head(char dbName) { pBlock *pb; - + + if (!the_pFile) + return; + pb = the_pFile->pbHead; - + while(pb) { if(getpBlock_dbName(pb) == dbName) {