fixed bug #402254
[fw/sdcc] / src / SDCCglue.c
index 9a4c15fada0e44a2015a38a621c1c55ccfb8d647..4033ed53b8b6150f6b055bb955fa15878a9bd47e 100644 (file)
@@ -158,6 +158,9 @@ emitRegularMap (memmap * map, bool addPublics, bool arFlag)
   ast *ival = NULL;
   memmap *segment;
 
+  if (!map)
+    return;
+
   if (addPublics)
     {
       /* PENDING: special case here - should remove */