aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-28 14:42:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-28 14:42:39 +0100
commit862dd50f1572827dfc50900cac72e5020b1634de (patch)
treecfb8971b71f66ea736acf0323a1b85d7cbc0085e /src/libmime/message.c
parentbadeba0ee1c97acabf25f8e33ba07ce96fac3298 (diff)
downloadrspamd-862dd50f1572827dfc50900cac72e5020b1634de.tar.gz
rspamd-862dd50f1572827dfc50900cac72e5020b1634de.zip
[Minor] Split loops
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r--src/libmime/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index e4ad8b954..cd29984f2 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1836,7 +1836,7 @@ rspamd_message_get_mime_header_array (struct rspamd_task *task,
{
GPtrArray *ret, *ar;
struct raw_header *cur;
- guint nelems = 0, i;
+ guint nelems = 0, i, j;
struct rspamd_mime_part *mp;
for (i = 0; i < task->parts->len; i ++) {
@@ -1860,7 +1860,7 @@ rspamd_message_get_mime_header_array (struct rspamd_task *task,
mp = g_ptr_array_index (task->parts, i);
ar = g_hash_table_lookup (mp->raw_headers, field);
- PTR_ARRAY_FOREACH (ar, i, cur) {
+ PTR_ARRAY_FOREACH (ar, j, cur) {
if (strong) {
if (strcmp (cur->name, field) != 0) {
continue;