diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-04 14:56:47 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-04 14:56:47 +0000 |
commit | 84236da213a78afac84d1c1532aca94b7ef72b0c (patch) | |
tree | 1d654e06fba92ab9f571bc87c6bad9e4b93b297f /src/libutil/hash.c | |
parent | 72259231cd5cfb6ae54e11cac41164f7ea4539a0 (diff) | |
download | rspamd-84236da213a78afac84d1c1532aca94b7ef72b0c.tar.gz rspamd-84236da213a78afac84d1c1532aca94b7ef72b0c.zip |
Initialize expire queue.
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |