projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0f38d
)
Fix silly bug
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 1 Jun 2004 10:24:25 +0000
(10:24 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 1 Jun 2004 10:24:25 +0000
(10:24 +0000)
contrib/tsearch2/ts_stat.c
patch
|
blob
|
history
diff --git
a/contrib/tsearch2/ts_stat.c
b/contrib/tsearch2/ts_stat.c
index 555295712336698b2df7700551216e7a85fd786a..7995406f43f07898960b2990a0ccb0d163811fcd 100644
(file)
--- a/
contrib/tsearch2/ts_stat.c
+++ b/
contrib/tsearch2/ts_stat.c
@@
-457,7
+457,7
@@
ts_stat_sql(text *txt, text *ws)
if ( ws ) {
char *buf;
buf = VARDATA(ws);
- while( buf - VARDATA(ws) < VARSIZE(
buf
) - VARHDRSZ ) {
+ while( buf - VARDATA(ws) < VARSIZE(
ws
) - VARHDRSZ ) {
switch (tolower(*buf)) {
case 'a':
stat->weight |= 1 << 3;