From: Vsevolod Stakhov Date: Thu, 17 Jun 2010 12:54:28 +0000 (+0400) Subject: * Incorrectly removed in previous commit X-Git-Tag: 0.3.1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc055d8a9eb84f62eddb4ac4a9631f80aa658085;p=thirdparty%2Frspamd.git * Incorrectly removed in previous commit --- diff --git a/src/filter.c b/src/filter.c index 809d4b3269..b2c4b7ab56 100644 --- a/src/filter.c +++ b/src/filter.c @@ -60,6 +60,7 @@ insert_metric_result (struct worker_task *task, struct metric *metric, const cha memory_pool_add_destructor (task->task_pool, (pool_destruct_func) g_hash_table_destroy, metric_res->symbols); metric_res->metric = metric; metric_res->grow_factor = 0; + metric_res->score = 0; g_hash_table_insert (task->results, (gpointer) metric->name, metric_res); } diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 347fa5cab4..e5b5893fb5 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -75,6 +75,12 @@ chartable_module_config (struct config_file *cfg) char *value; int res = TRUE; + if ((value = get_module_opt (cfg, "chartable", "symbol")) != NULL) { + chartable_module_ctx->symbol = memory_pool_strdup (chartable_module_ctx->chartable_pool, value); + } + else { + chartable_module_ctx->symbol = DEFAULT_SYMBOL; + } if ((value = get_module_opt (cfg, "chartable", "threshold")) != NULL) { errno = 0; chartable_module_ctx->threshold = strtod (value, NULL);