]> source.dussan.org Git - rspamd.git/commitdiff
Explicitly set in_class field while learning.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2013 18:17:24 +0000 (18:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2013 18:17:24 +0000 (18:17 +0000)
src/classifiers/bayes.c

index 184a638020442605722343f23c9d6b2783f9088f..ae291de243f20c639b470bb8853e79e21c79093a 100644 (file)
@@ -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) {