fixed a compiler crash
[fw/sdcc] / src / SDCCsymt.c
index c0b1bcdc952336ec9ba78e1fcdee49b30ae7a457..433afeafc7ffa0b9cc7147f80f2982896016d46d 100644 (file)
@@ -1885,6 +1885,11 @@ printTypeChain (sym_link * start, FILE * of)
       nlr = 1;
     }
 
+  if (start==NULL) {
+    fprintf (of, "**err**");
+    return;
+  }
+
   /* print the chain as it is written in the source: */
   /* start with the last entry                       */
   for (type = start; type && type->next; type = type->next)