summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-30 15:42:13 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-30 15:42:13 +0400
commit4eb2985d1ef3631fca82cbf18cc2e8d7aab9b096 (patch)
treee11b3595e4063be15ee8f80d04bb200e89b16574
parenta654b27c5b10cdad72654386216dd43ae697b7be (diff)
downloadrspamd-4eb2985d1ef3631fca82cbf18cc2e8d7aab9b096.tar.gz
rspamd-4eb2985d1ef3631fca82cbf18cc2e8d7aab9b096.zip
* Fix bug with gboolean usage
-rw-r--r--src/message.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 23e1b5bc7..510d407e9 100644
--- a/src/message.c
+++ b/src/message.c
@@ -301,7 +301,14 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
text_part->is_balanced = TRUE;
text_part->html_nodes = NULL;
text_part->content = strip_html_tags (task->task_pool, text_part, part_content, NULL);
- url_parse_text (task, text_part->orig, (text_part->html_nodes != NULL));
+
+ if (text_part->html_nodes == NULL) {
+ url_parse_text (task, text_part->orig, FALSE);
+ }
+ else {
+ url_parse_text (task, text_part->orig, TRUE);
+ }
+
text_part->fuzzy = fuzzy_init_byte_array (text_part->content, task->task_pool);
memory_pool_add_destructor (task->task_pool, (pool_destruct_func)free_byte_array_callback, text_part->content);
task->text_parts = g_list_prepend (task->text_parts, text_part);