mirror of
https://github.com/postgres/postgres.git
synced 2026-06-14 19:20:08 -04:00
Fix small bug in headline generation.
Patch from Sushant Sinha <sushant354@gmail.com> http://archives.postgresql.org/pgsql-hackers/2008-07/msg00785.php
This commit is contained in:
parent
741c3b0966
commit
f189a12226
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ hlCover(HLPRSTEXT * prs, QUERYTYPE * query, int *p, int *q)
|
|||
ITEM *item = GETQUERY(query);
|
||||
int pos = *p;
|
||||
|
||||
*q = 0;
|
||||
*q = -1;
|
||||
*p = 0x7fffffff;
|
||||
|
||||
for (j = 0; j < query->size; j++)
|
||||
|
|
@ -132,7 +132,7 @@ hlCover(HLPRSTEXT * prs, QUERYTYPE * query, int *p, int *q)
|
|||
item++;
|
||||
}
|
||||
|
||||
if (*q == 0)
|
||||
if (*q < 0)
|
||||
return false;
|
||||
|
||||
item = GETQUERY(query);
|
||||
|
|
|
|||
Loading…
Reference in a new issue