diff options
-rw-r--r-- | contrib/tsearch2/ispell/spell.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index d702dbd9cca..69c91470f67 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -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); |