Skip to content

Commit

Permalink
Merge pull request #296 from junichi-tanaka/fix-issues-293
Browse files Browse the repository at this point in the history
Fix issue 293
  • Loading branch information
jbuchbinder authored Feb 6, 2018
2 parents 6305591 + 48dbbd3 commit d5d217d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ hash_delete (datum_t *key, hash_t * hash)
for (; bucket != NULL; last = bucket, bucket = bucket->next)
{
node_t tmp;
if (bucket->key && !hash_keycmp(hash, key, bucket->key))
{
continue;
}
if (bucket == &hash->node[i])
{
tmp.key = bucket->key;
Expand Down

0 comments on commit d5d217d

Please sign in to comment.