added ir_init return value, check for malloc, adding subclasses for cdats correctly...
[henge/webcc.git] / src / apc / ir.c
index d31bc1a..67a6aaf 100644 (file)
@@ -98,7 +98,7 @@ push_cdat
   curr_cdatp->idx = num_cdats;
 
   /* Set the cdat as a subclass of the previous cdat */
-
+  (*cdat_stackp)->class_list[(*cdat_stackp)->num_classes] = curr_cdatp;
   /* Push the cdat onto the cdat_stack */
   *++cdat_stackp = curr_cdatp;