summaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-12 15:11:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-12 15:18:17 +0100
commit798a6cc321640f579c37dc400a9bca31cb8ad5e2 (patch)
treeecdcd875bb58e359812961f911e3c22cad95ed65 /src/plugins/chartable.c
parente3412399bb82853e6e622188e683080791cf5de6 (diff)
downloadrspamd-798a6cc321640f579c37dc400a9bca31cb8ad5e2.tar.gz
rspamd-798a6cc321640f579c37dc400a9bca31cb8ad5e2.zip
[Project] Adopt main routines and plugins
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index b6e42457a..815afd95a 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -616,8 +616,7 @@ chartable_symbol_callback (struct rspamd_task *task,
struct rspamd_mime_text_part *part;
struct chartable_ctx *chartable_module_ctx = chartable_get_context (task->cfg);
- for (i = 0; i < task->text_parts->len; i ++) {
- part = g_ptr_array_index (task->text_parts, i);
+ PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, part) {
rspamd_chartable_process_part (task, part, chartable_module_ctx);
}