Explorar el Código

[Minor] Initialise candidates even in shortage of words case

tags/1.8.0
Vsevolod Stakhov hace 5 años
padre
commit
df2b0f02b1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/libmime/lang_detection.c

+ 1
- 0
src/libmime/lang_detection.c Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar