From ef3d454616a1b1bae06f035374a64fbde5bbbfff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Nov 2015 18:45:37 +0000 Subject: Fix stupid error when removing `words` member --- src/libmime/message.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libmime/message.c b/src/libmime/message.c index 10d7f04f4..e4658c164 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -982,7 +982,6 @@ rspamd_normalize_text_part (struct rspamd_task *task, const guchar *r; gchar *temp_word; guint i, nlen; - GArray *tmp; #ifdef WITH_SNOWBALL if (part->language && part->language[0] != '\0' && IS_PART_UTF (part)) { @@ -1000,9 +999,9 @@ rspamd_normalize_text_part (struct rspamd_task *task, part->urls_offset, FALSE, NULL); - if (tmp) { - for (i = 0; i < tmp->len; i ++) { - w = &g_array_index (tmp, rspamd_ftok_t, i); + if (part->normalized_words) { + for (i = 0; i < part->normalized_words->len; i ++) { + w = &g_array_index (part->normalized_words, rspamd_ftok_t, i); r = NULL; #ifdef WITH_SNOWBALL if (stem) { -- cgit v1.2.3