Fixed return value in removeFromLinkedList
This commit is contained in:
parent
29662b7e06
commit
8ce9e6127f
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ static LH_ENTRY(value_t) * removeFromLinkedList(struct LH_ENTRY(table) * table,
|
|||
// bucketList, and free that item.
|
||||
struct LH_ENTRY(pair_t) * oldNext = thePair->next;
|
||||
*thePair = *(thePair->next);
|
||||
ret = thePair->value;
|
||||
free(oldNext);
|
||||
}
|
||||
} else { // Found, in spillover bucket.
|
||||
|
|
Loading…
Reference in a new issue