Skip to content

Commit

Permalink
Bug Fix: Null Pointer Dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
Theldus committed Apr 25, 2020
1 parent e164cdb commit 470fae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void hashtable_print_stats(struct hashtable **ht)
h = *ht;

/* If valid hashtable. */
if (h == NULL && h->elements < 1)
if (h == NULL || h->elements < 1)
return;

#if DUMP_BUCKET
Expand Down

0 comments on commit 470fae7

Please sign in to comment.