From: Teodor Sigaev Date: Tue, 1 Jun 2004 10:24:25 +0000 (+0000) Subject: Fix silly bug X-Git-Tag: REL8_0_0BETA1~462 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f35e8d843117f9e1b8929a3cce8344baef75a389;p=postgresql Fix silly bug --- diff --git a/contrib/tsearch2/ts_stat.c b/contrib/tsearch2/ts_stat.c index 5552957123..7995406f43 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;