summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-10 14:13:25 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-10 14:13:25 +0000
commitada29520eb2c6e558917d4c572fce1feeeb3cd0c (patch)
tree545541dfb76fd385b6420e1c48d96b2502982418
parent1609248ec4d1b31a7daa1cc69d7899779278171e (diff)
parent16899228d96d10853ff46cac2e24ab311b44e574 (diff)
downloadquagga-ada29520eb2c6e558917d4c572fce1feeeb3cd0c.tar.bz2
quagga-ada29520eb2c6e558917d4c572fce1feeeb3cd0c.tar.xz
Merge branch 'master' of ssh://paulo@80.177.246.130/git/quagga.euro-ix into pthreads
-rw-r--r--lib/symtab.c5
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 ;
} ;