diff options
-rw-r--r-- | contrib/tsearch2/ts_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/ts_stat.c b/contrib/tsearch2/ts_stat.c index 55529571233..7995406f43f 100644 --- 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; |