提交 49b64d34 编写于 作者: T Teodor Sigaev

Fix memory reallocation condition

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册