From: Vsevolod Stakhov Date: Wed, 4 Feb 2015 14:56:47 +0000 (+0000) Subject: Initialize expire queue. X-Git-Tag: 0.9.0~768 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84236da213a78afac84d1c1532aca94b7ef72b0c;p=rspamd.git Initialize expire queue. --- 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;