]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix re cache initialisation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 14:56:24 +0000 (14:56 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 14:56:24 +0000 (14:56 +0000)
src/libserver/re_cache.c

index 6000be1c54f5c7c19d953ea6545596610bc8c662..961fcf2916566c0428faee0311807662fb4b11ce 100644 (file)
@@ -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);