]> source.dussan.org Git - rspamd.git/commitdiff
Fix pointer passing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 27 Jan 2015 23:40:09 +0000 (23:40 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 27 Jan 2015 23:40:09 +0000 (23:40 +0000)
src/libstat/classifiers/bayes.c

index 54d696721e8b91ca41c9b013468e0945a6327cec..979329d4efc9cc62e9ca3f6cd74e57d77dfc17d5 100644 (file)
@@ -149,7 +149,7 @@ bayes_classify (struct classifier_ctx * ctx,
        g_assert (rt != NULL);
        g_assert (rt->end_pos > rt->start_pos);
 
-       g_tree_foreach (input, bayes_classify_callback, &rt);
+       g_tree_foreach (input, bayes_classify_callback, rt);
 
        if (rt->spam_prob == 0) {
                final_prob = 0;