From: Vsevolod Stakhov Date: Fri, 25 Nov 2016 14:56:24 +0000 (+0000) Subject: [Fix] Fix re cache initialisation X-Git-Tag: 1.4.1~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45a5a84c71b49fed9fc1419e86a0b9cd0631df7c;p=rspamd.git [Fix] Fix re cache initialisation --- diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 6000be1c5..961fcf291 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -187,7 +187,7 @@ rspamd_re_cache_new (void) { struct rspamd_re_cache *cache; - cache = g_slice_alloc (sizeof (*cache)); + cache = g_slice_alloc0 (sizeof (*cache)); cache->re_classes = g_hash_table_new (g_int64_hash, g_int64_equal); cache->nre = 0; cache->re = g_ptr_array_new_full (256, rspamd_re_cache_elt_dtor);