projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39def59
)
Fix memory reallocation condition
author
Teodor Sigaev
Tue, 26 Dec 2006 14:54:24 +0000
(14:54 +0000)
committer
Teodor Sigaev
Tue, 26 Dec 2006 14:54:24 +0000
(14:54 +0000)
contrib/tsearch2/dict_thesaurus.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/dict_thesaurus.c
b/contrib/tsearch2/dict_thesaurus.c
index 12ab7f222a05823b04cb4dbf723119805cede6d2..3975e4e832fbbacedb205d1bf79484695b6b280c 100644
(file)
--- a/
contrib/tsearch2/dict_thesaurus.c
+++ b/
contrib/tsearch2/dict_thesaurus.c
@@
-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)
{