diff options
-rw-r--r-- | src/lua/lua_cfg_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c index 571278b21..f564f1e79 100644 --- a/src/lua/lua_cfg_file.c +++ b/src/lua/lua_cfg_file.c @@ -86,7 +86,7 @@ lua_process_metric (lua_State *L, const gchar *name, struct rspamd_config *cfg) s->weight_ptr = score; } else { - s = rspamd_mempool_alloc (cfg->cfg_pool, sizeof (*s)); + s = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (*s)); s->name = symbol; s->weight_ptr = score; g_hash_table_insert (metric->symbols, symbol, s); |