aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-22 16:14:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-22 16:14:04 +0000
commitfb94e7098a57394ed4242428248dff87e190619b (patch)
tree6ab329e110a93240bdbd394a3b35246c5e9397f8 /src/libstat/stat_config.c
parent48bbc3ebac851ffb4871a1e8be8b1c088873ee3e (diff)
downloadrspamd-fb94e7098a57394ed4242428248dff87e190619b.tar.gz
rspamd-fb94e7098a57394ed4242428248dff87e190619b.zip
Fix cache definitions in multiple classifier and no type
Issue: #493 Reported by: @wackerm
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r--src/libstat/stat_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index ec73951e8..538ddf8cf 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -158,6 +158,8 @@ rspamd_stat_init (struct rspamd_config *cfg, struct event_base *ev_base)
cl->subrs->init_func (cfg->cfg_pool, cl);
/* Init classifier cache */
+ cache_name = NULL;
+
if (clf->opts) {
cache_obj = ucl_object_find_key (clf->opts, "cache");
cache_name_obj = NULL;