Fix memory reallocation condition
authorTeodor Sigaev <[email protected]>
Tue, 26 Dec 2006 14:55:00 +0000 (14:55 +0000)
committerTeodor Sigaev <[email protected]>
Tue, 26 Dec 2006 14:55:00 +0000 (14:55 +0000)
contrib/tsearch2/dict_thesaurus.c

index 992cbc612334c8851ff789be60be49438b98d85c..824f6f0ac652bad9e1a427136af405d689435ae9 100644 (file)
@@ -118,7 +118,7 @@ addWrd(DictThesaurus * d, char *b, char *e, uint16 idsubst, uint16 nwrd, uint16
        {
                nres = ntres = 0;
 
-               if (idsubst <= d->nsubst)
+               if (idsubst >= d->nsubst)
                {
                        if (d->nsubst == 0)
                        {