]> source.dussan.org Git - rspamd.git/commitdiff
Fix stupid error when removing `words` member
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Nov 2015 18:45:37 +0000 (18:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Nov 2015 18:45:37 +0000 (18:45 +0000)
src/libmime/message.c

index 10d7f04f45efbc54805bc711f8b0c04b05da7f54..e4658c164fc43f2f8f38ce9d72251117536e75de 100644 (file)
@@ -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) {