diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | array.c | 11 |
2 files changed, 15 insertions, 1 deletions
@@ -8,6 +8,11 @@ * configure.ac (AC_STRUCT_ST_BLKSIZE): Replaced with call to AC_CHECK_MEMBERS. + Unrelated: + + * array.c (null_array): Remove the assert and just clear + symbol->xarray. + 2013-05-26 Arnold D. Robbins <arnold@skeeve.com> * getopt.c: For Mac OS X, also include <stdlib.h> to avoid @@ -113,7 +113,16 @@ null_array(NODE *symbol) symbol->table_size = symbol->array_size = 0; symbol->array_capacity = 0; symbol->flags = 0; - assert(symbol->xarray == NULL); + /* + * 5/2013: This used to be + * + * assert(symbol->xarray == NULL); + * + * But that seems to cause problems for no good reason + * that I can see. I believe it to be an artifact of the + * union getting in the way. + */ + symbol->xarray = NULL; /* vname, parent_array not (re)initialized */ } |