]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
* Fix bug with gboolean usage
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Sat, 30 May 2009 11:42:13 +0000 (15:42 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Sat, 30 May 2009 11:42:13 +0000 (15:42 +0400)
src/message.c

index 23e1b5bc77b15a6af48eea715cbea7a4f9859188..510d407e9f9ae06733744dfe90ae1590c0fac699 100644 (file)
@@ -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);