Fixed return value in removeFromLinkedList

This commit is contained in:
Sears Russell 2006-05-25 22:48:15 +00:00
parent 29662b7e06
commit 8ce9e6127f

View file

@ -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.