Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49b64d3

Browse files
committed
Fix memory reallocation condition
1 parent39def59 commit49b64d3

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)

[8]ページ先頭

©2009-2025 Movatter.jp