Commit 49b64d34 authored by Teodor Sigaev's avatar Teodor Sigaev

Fix memory reallocation condition

parent 39def593
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.6 2006/10/04 00:29:46 momjian Exp $ */
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.7 2006/12/26 14:54:24 teodor Exp $ */
/*
* thesaurus
......@@ -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)
{
......
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