diff options
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r-- | src/rspamadm/rspamadm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index c4ae62a4b..5751c50d0 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -208,10 +208,9 @@ main (gint argc, gchar **argv, gchar **env) rspamd_strcase_equal, g_free, g_free); ottery_init (NULL); process_quark = g_quark_from_static_string ("rspamadm"); - cfg = g_malloc0 (sizeof (*cfg)); + cfg = rspamd_config_defaults (); + cfg->libs_ctx = rspamd_init_libs (); rspamd_main = g_malloc0 (sizeof (*rspamd_main)); - rspamd_init_libs (); - rspamd_init_cfg (cfg, TRUE); rspamd_main->cfg = cfg; rspamd_main->pid = getpid (); rspamd_main->type = process_quark; |