From: Vsevolod Stakhov Date: Sun, 1 Dec 2013 18:17:24 +0000 (+0000) Subject: Explicitly set in_class field while learning. X-Git-Tag: 0.6.1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=566f727b8c2386a614bb6909550c173357c39af6;p=thirdparty%2Frspamd.git Explicitly set in_class field while learning. --- diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index 184a638020..ae291de243 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -472,6 +472,7 @@ bayes_learn_spam (struct classifier_ctx* ctx, statfile_pool_t *pool, data.pool = pool; data.now = time (NULL); data.ctx = ctx; + data.in_class = TRUE; data.processed_tokens = 0; if (ctx->cfg->opts && (value = g_hash_table_lookup (ctx->cfg->opts, "max_tokens")) != NULL) {