From 84236da213a78afac84d1c1532aca94b7ef72b0c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 4 Feb 2015 14:56:47 +0000 Subject: [PATCH] Initialize expire queue. --- src/libutil/hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/hash.c b/src/libutil/hash.c index e316b2739..05558078d 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -102,6 +102,7 @@ rspamd_lru_hash_new_full ( new = g_slice_alloc (sizeof (rspamd_lru_hash_t)); new->tbl = g_hash_table_new_full (hf, cmpf, NULL, rspamd_lru_destroy_node); + new->exp = g_queue_new (); new->maxage = maxage; new->maxsize = maxsize; new->value_destroy = value_destroy; -- 2.39.5