From 7d62747bb2c0eabe49ab9833343b028f2676c5c3 Mon Sep 17 00:00:00 2001 From: slade_rich Date: Thu, 5 Feb 2004 23:02:58 +0000 Subject: [PATCH] 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 --- src/pic/pcode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) { -- 2.47.2