Skip to content

Commit 49b64d3

Browse files
committed
Fix memory reallocation condition
1 parent 39def59 commit 49b64d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/tsearch2/dict_thesaurus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.6 2006/10/04 00:29:46 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.7 2006/12/26 14:54:24 teodor Exp $ */
22

33
/*
44
* thesaurus
@@ -118,7 +118,7 @@ addWrd(DictThesaurus * d, char *b, char *e, uint16 idsubst, uint16 nwrd, uint16
118118
{
119119
nres = ntres = 0;
120120

121-
if (idsubst <= d->nsubst)
121+
if (idsubst >= d->nsubst)
122122
{
123123
if (d->nsubst == 0)
124124
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy