summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-26 18:45:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-26 18:45:37 +0000
commitef3d454616a1b1bae06f035374a64fbde5bbbfff (patch)
tree550cb077d65e32e1be62487f5abb9a1e018a1e83
parentc04c2cad7965e9d606f46d74fbe8889b1344298d (diff)
downloadrspamd-ef3d454616a1b1bae06f035374a64fbde5bbbfff.tar.gz
rspamd-ef3d454616a1b1bae06f035374a64fbde5bbbfff.zip
Fix stupid error when removing `words` member
-rw-r--r--src/libmime/message.c7
1 files 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) {