Commit a6fefc86 authored by Teodor Sigaev's avatar Teodor Sigaev

Check number of affixes to prevent core dump with zero number of affixes

parent 9ce51f3a
......@@ -719,6 +719,9 @@ NISortAffixes(IspellDict * Conf)
CMPDAffix *ptr;
int firstsuffix = -1;
if (Conf->naffixes==0)
return;
if (Conf->naffixes > 1)
qsort((void *) Conf->Affix, Conf->naffixes, sizeof(AFFIX), cmpaffix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment