aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-09 18:11:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-09 18:11:22 +0100
commitdf2b0f02b106497fc1c95669d2f2c6f2d6fccc62 (patch)
tree65fb242e64b4ab683f97bbafe8e0476b8b346d07 /src
parent10bd9516cd06ab106d14f6f21f168bae2c56b454 (diff)
downloadrspamd-df2b0f02b106497fc1c95669d2f2c6f2d6fccc62.tar.gz
rspamd-df2b0f02b106497fc1c95669d2f2c6f2d6fccc62.zip
[Minor] Initialise candidates even in shortage of words case
Diffstat (limited to 'src')
-rw-r--r--src/libmime/lang_detection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index dfd62d4e5..d4237690d 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -1604,6 +1604,7 @@ rspamd_language_detector_detect (struct rspamd_task *task,
(int)part->utf_words->len,
(int)default_short_text_limit);
rspamd_language_detector_set_language (task, part, "en");
+ candidates = kh_init (rspamd_candidates_hash);
}
else {
candidates = kh_init (rspamd_candidates_hash);