Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int resize(hashtable *ht, size_t min_capacity, int *malloc_failed) {
if (ht->type->rehashingStarted) ht->type->rehashingStarted(ht);

/* If the old table was empty, the rehashing is completed immediately. */
if (ht->tables[0] == NULL || ht->used[0] == 0) {
if (ht->tables[0] == NULL) {
rehashingCompleted(ht);
} else if (ht->type->instant_rehashing) {
while (hashtableIsRehashing(ht)) {
Expand Down
Loading