diff options
author | paulo <paul@bayleaf.org.uk> | 2009-12-10 12:12:07 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2009-12-10 12:12:07 +0000 |
commit | 95c8696b16fd25c9cf29aad01ff27250c687fd9b (patch) | |
tree | 2e6ecfd43efa9a77e07dbe601fbf2382e79cccf6 /lib/symtab.c | |
parent | 262890ac49fcc58b2f0d07a2d179773289ebf115 (diff) | |
parent | 3cad62944e8270fcd9562f6d115c064d61211c6c (diff) | |
download | quagga-95c8696b16fd25c9cf29aad01ff27250c687fd9b.tar.bz2 quagga-95c8696b16fd25c9cf29aad01ff27250c687fd9b.tar.xz |
Merge branch 'master' of ssh://paulo@80.177.246.130/git/quagga.euro-ix into pthreads
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 9a833a14..adc21e73 100644 --- a/lib/symtab.c +++ b/lib/symtab.c @@ -86,7 +86,7 @@ * If there are no references to the symbol, the symbol entry is released. * If there are references to the symbol, it is preserved (as an orphan) until * all references are unset. The value of an orphaned symbol should not be - * changed. + * changed (but may be unset, since it is already unset). * * There are two, parallel mechanisms for keeping track of references to a * symbol: @@ -880,7 +880,8 @@ symbol_set_value(symbol sym, void* new_value) { void* old_value ; - assert(sym->table != NULL) ; /* may not set value for orphan symbol ! */ + assert((sym->table != NULL) || (new_value == NULL)) ; + /* may not set non-NULL value for orphan symbol ! */ old_value = sym->value ; sym->value = new_value ; |