diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-28 14:42:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-28 14:42:39 +0100 |
commit | 862dd50f1572827dfc50900cac72e5020b1634de (patch) | |
tree | cfb8971b71f66ea736acf0323a1b85d7cbc0085e /src | |
parent | badeba0ee1c97acabf25f8e33ba07ce96fac3298 (diff) | |
download | rspamd-862dd50f1572827dfc50900cac72e5020b1634de.tar.gz rspamd-862dd50f1572827dfc50900cac72e5020b1634de.zip |
[Minor] Split loops
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/message.c | 4 |
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; |