forked from Telodendria/Telodendria
Fix bug in HashMap that would allow iterating over deleted values.
This commit is contained in:
parent
27c4713e5d
commit
2443c91bba
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ HashMapIterate(HashMap * map, char **key, void **value)
|
|||
|
||||
map->iterator++;
|
||||
|
||||
if (bucket)
|
||||
if (bucket && bucket->hash)
|
||||
{
|
||||
*key = bucket->key;
|
||||
*value = bucket->value;
|
||||
|
|
Loading…
Reference in a new issue