projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed2d1b5
)
Fix memory reallocation condition
author
Teodor Sigaev
<
[email protected]
>
Tue, 26 Dec 2006 14:55:00 +0000
(14:55 +0000)
committer
Teodor Sigaev
<
[email protected]
>
Tue, 26 Dec 2006 14:55:00 +0000
(14:55 +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 992cbc612334c8851ff789be60be49438b98d85c..824f6f0ac652bad9e1a427136af405d689435ae9 100644
(file)
--- a/
contrib/tsearch2/dict_thesaurus.c
+++ b/
contrib/tsearch2/dict_thesaurus.c
@@
-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)
{