From: Vsevolod Stakhov Date: Thu, 27 May 2010 15:19:00 +0000 (+0400) Subject: * Fix order X-Git-Tag: 0.3.1~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc4b1e2a31ed143e123cf6d91a5bb951f1b65b24;p=rspamd.git * Fix order --- diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c index 78e05d43b..6c64cdc4b 100644 --- a/src/classifiers/winnow.c +++ b/src/classifiers/winnow.c @@ -244,15 +244,15 @@ winnow_classify (struct classifier_ctx *ctx, statfile_pool_t * pool, GTree * inp } if (sel != NULL) { - sumbuf = memory_pool_alloc (task->task_pool, 32); - snprintf (sumbuf, 32, "%.2Lg", max); - cur = g_list_prepend (NULL, sumbuf); #ifdef WITH_LUA max = call_classifier_post_callbacks (ctx->cfg, task, max); #endif if (st->normalizer != NULL) { max = st->normalizer (task->cfg, max, st->normalizer_data); } + sumbuf = memory_pool_alloc (task->task_pool, 32); + snprintf (sumbuf, 32, "%.2Lg", max); + cur = g_list_prepend (NULL, sumbuf); insert_result (task, ctx->cfg->metric, sel->symbol, max, cur); } }