Unitialized variable

This commit is contained in:
Luca 2019-10-25 19:00:25 +02:00
parent 8a949e8dc2
commit 796316b64c

View file

@ -255,7 +255,7 @@ bool GenericHash::walk(u_int32_t *begin_slot,
*/
u_int GenericHash::purgeIdle(bool force_idle) {
u_int i, num_idled, buckets_checked = 0;
u_int i, num_idled = 0, buckets_checked = 0;
time_t now = time(NULL);
/* Visit all entries when force_idle is true */
u_int visit_fraction = !force_idle ? purge_step : num_hashes;