Fix hashmap collisions sometimes hanging deletion

This commit is contained in:
ISSOtm
2020-05-03 19:13:12 +02:00
parent c135e2c6a0
commit 781a65ee49
4 changed files with 50 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ bool hash_RemoveElement(HashMap map, char const *key)
*ptr = next;
return true;
}
ptr = &(*ptr)->next;
}
return false;
}