Skip to content

Commit

Permalink
extra safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
xant committed Dec 11, 2014
1 parent 975bae6 commit dcf0182
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ ht_set_internal(hashtable_t *table,
if (!list)
list = ht_set_list(table, hash);

if (!list)
return -1;

ht_item_t *item = NULL;
TAILQ_FOREACH(item, &list->head, next) {
if (/*ht_item->hash == arg->item.hash && */
Expand Down

0 comments on commit dcf0182

Please sign in to comment.