diff options
Diffstat (limited to 'lib/symtab.c')
-rw-r--r-- | lib/symtab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/symtab.c b/lib/symtab.c index 885be426..57a49396 100644 --- a/lib/symtab.c +++ b/lib/symtab.c @@ -423,7 +423,8 @@ symbol_table_ream(symbol_table table, int free_structure) symbol sym ; unsigned int i ; - i = table->base_count ; + /* There are no actual bases until they have been allocated. */ + i = (table->bases != NULL) ? table->base_count : 0 ; while (i--) { @@ -453,7 +454,7 @@ symbol_table_ream(symbol_table table, int free_structure) } ; symbol_table_reset(table, free_structure) ; - + /* asserts(table->entry_count == 0) */ return NULL ; } ; |