Fixed problem where files that only contain 'const unsigned char' would caused SDCC...
authorslade_rich <slade_rich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 5 Feb 2004 23:02:58 +0000 (23:02 +0000)
committerslade_rich <slade_rich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 5 Feb 2004 23:02:58 +0000 (23:02 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3169 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/pic/pcode.c

index 8681fdd6d47a5f3e816936a5506deaf86529dd9e..74715026521ca3a5baca915f79052ccd511884fd 100644 (file)
@@ -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) {