]> source.dussan.org Git - rspamd.git/commitdiff
Initialize expire queue.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Feb 2015 14:56:47 +0000 (14:56 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Feb 2015 14:56:47 +0000 (14:56 +0000)
src/libutil/hash.c

index e316b273978cb592f75578f6693c477d509a6db8..05558078d53506fbe722099bd426432481935087 100644 (file)
@@ -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;