mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Fix memory reallocation condition
This commit is contained in:
parent
39def593c5
commit
49b64d346f
@ -1,4 +1,4 @@
|
||||
/* $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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user