Skip to content

Commit

Permalink
Fixing bad initialization of HashTableIter inside hashtable_iter_init
Browse files Browse the repository at this point in the history
  • Loading branch information
srdja committed Feb 21, 2019
1 parent 6722031 commit 719fd8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ void hashtable_foreach_value(HashTable *table, void (*fn) (void *val))
*/
void hashtable_iter_init(HashTableIter *iter, HashTable *table)
{
memset(iter, 0, sizeof(HashTableIter));
iter->table = table;

size_t i;
Expand Down

0 comments on commit 719fd8c

Please sign in to comment.