Skip to content
Snippets Groups Projects
Commit a6fefc86 authored by Teodor Sigaev's avatar Teodor Sigaev
Browse files

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

parent 9ce51f3a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment