diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 17:00:54 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 17:00:54 +0400 |
commit | e7f2df7d45962a98f5caeb5c664fc6c1310f3112 (patch) | |
tree | 484fe21da6555396fcef7c7a205d43460f5ab1ce /src/message.c | |
parent | 9bd902ee1d0ebb87e789e335dc71bc7fb87e9e8e (diff) | |
download | rspamd-e7f2df7d45962a98f5caeb5c664fc6c1310f3112.tar.gz rspamd-e7f2df7d45962a98f5caeb5c664fc6c1310f3112.zip |
* Fix some issues with empty parts
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index dce8473e1..643ac1710 100644 --- a/src/message.c +++ b/src/message.c @@ -511,7 +511,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont if (g_mime_content_type_is_type (type, "text", "html") || g_mime_content_type_is_type (type, "text", "xhtml")) { msg_debug ("mime_foreach_callback: got urls from text/html part"); - text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part)); + text_part = memory_pool_alloc0 (task->task_pool, sizeof (struct mime_text_part)); text_part->is_html = TRUE; if (is_empty) { text_part->is_empty = TRUE; @@ -547,7 +547,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont else if (g_mime_content_type_is_type (type, "text", "plain")) { msg_debug ("mime_foreach_callback: got urls from text/plain part"); - text_part = memory_pool_alloc (task->task_pool, sizeof (struct mime_text_part)); + text_part = memory_pool_alloc0 (task->task_pool, sizeof (struct mime_text_part)); text_part->is_html = FALSE; if (is_empty) { text_part->is_empty = TRUE; |