diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-30 10:45:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-30 10:45:55 +0100 |
commit | 78f34e1a2f7fc6a0587516079db0504c3ddccfa8 (patch) | |
tree | 1bda3fa295ae7228d65a173d176406d8481e7288 /src/rspamadm | |
parent | 0be70b04fb824e78347d58ce6a49c7a629d5fc28 (diff) | |
download | rspamd-78f34e1a2f7fc6a0587516079db0504c3ddccfa8.tar.gz rspamd-78f34e1a2f7fc6a0587516079db0504c3ddccfa8.zip |
Set a sane quark for configtest to avoid NULL
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/configtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamadm/configtest.c b/src/rspamadm/configtest.c index d1154f49c..cd62de7c2 100644 --- a/src/rspamadm/configtest.c +++ b/src/rspamadm/configtest.c @@ -81,6 +81,7 @@ static void config_logger (rspamd_mempool_t *pool, gpointer ud) { struct rspamd_main *rm = ud; + GQuark configtest_quark = g_quark_from_static_string ("configtest"); rm->cfg->log_type = RSPAMD_LOG_CONSOLE; @@ -91,7 +92,7 @@ config_logger (rspamd_mempool_t *pool, gpointer ud) rm->cfg->log_level = G_LOG_LEVEL_WARNING; } - rspamd_set_logger (rm->cfg, g_quark_try_string ("main"), rm); + rspamd_set_logger (rm->cfg, configtest_quark, rm); if (rspamd_log_open_priv (rm->logger, rm->workers_uid, rm->workers_gid) == -1) { fprintf (stderr, "Fatal error, cannot open logfile, exiting\n"); |