diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 00:08:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 00:08:24 +0100 |
commit | fd4dfe5811892f379a5bd3d96407731edb2e5e1c (patch) | |
tree | d3db63e99e21403efe2e0f216854fcf053688b7c /src | |
parent | d2a938d398d31fae55e709a4e219b5acfa5c7622 (diff) | |
download | rspamd-fd4dfe5811892f379a5bd3d96407731edb2e5e1c.tar.gz rspamd-fd4dfe5811892f379a5bd3d96407731edb2e5e1c.zip |
GList -> GPtrArray for parts
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/images.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libmime/images.c b/src/libmime/images.c index de542ea18..25668ba3d 100644 --- a/src/libmime/images.c +++ b/src/libmime/images.c @@ -38,17 +38,15 @@ static void process_image (struct rspamd_task *task, struct mime_part *part); void process_images (struct rspamd_task *task) { - GList *cur; + guint i; struct mime_part *part; - cur = task->parts; - while (cur) { - part = cur->data; + for (i = 0; i < task->parts->len; i ++) { + part = g_ptr_array_index (task->parts, i); if (g_mime_content_type_is_type (part->type, "image", "*") && part->content->len > 0) { process_image (task, part); } - cur = g_list_next (cur); } } |