fix hashtable iteration in h_hashtable_update
This commit is contained in:
parent
916027a55f
commit
2f81c2b400
1 changed files with 2 additions and 0 deletions
|
|
@ -171,6 +171,8 @@ void h_hashtable_update(HHashTable *dst, const HHashTable *src) {
|
|||
HHashTableEntry *hte;
|
||||
for(i=0; i < src->capacity; i++) {
|
||||
for(hte = &src->contents[i]; hte; hte = hte->next) {
|
||||
if(hte->key == NULL)
|
||||
continue;
|
||||
h_hashtable_put(dst, hte->key, hte->value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue