From: Vsevolod Stakhov Date: Sun, 9 Sep 2018 17:11:22 +0000 (+0100) Subject: [Minor] Initialise candidates even in shortage of words case X-Git-Tag: 1.8.0~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df2b0f02b106497fc1c95669d2f2c6f2d6fccc62;p=rspamd.git [Minor] Initialise candidates even in shortage of words case --- 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);