Skip to content

Commit 470fae7

Browse files
committed
Bug Fix: Null Pointer Dereference
1 parent e164cdb commit 470fae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hashtable.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void hashtable_print_stats(struct hashtable **ht)
582582
h = *ht;
583583

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

588588
#if DUMP_BUCKET

0 commit comments

Comments
 (0)