Initialized argument pointer values with zeroes in hashtable_get_stats.
This commit is contained in:
@ -377,7 +377,8 @@ void hashtable_get_stats(
|
|||||||
|
|
||||||
ht = (HASHTABLE *)table;
|
ht = (HASHTABLE *)table;
|
||||||
CHK_HASHTABLE(ht);
|
CHK_HASHTABLE(ht);
|
||||||
|
*nelems = 0;
|
||||||
|
*longest = 0;
|
||||||
hashtable_read_lock(ht);
|
hashtable_read_lock(ht);
|
||||||
|
|
||||||
for (i = 0; i < ht->hashsize; i++)
|
for (i = 0; i < ht->hashsize; i++)
|
||||||
|
Reference in New Issue
Block a user