mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
--- ext/fts3/fts3_write.c.orig 2012-05-08 21:05:03.000000000 +0300
|
|
+++ ext/fts3/fts3_write.c 2012-05-08 21:07:08.000000000 +0300
|
|
@@ -1238,13 +1238,13 @@ int sqlite3Fts3SegReaderPending(
|
|
Fts3SegReader **ppReader /* OUT: SegReader for pending-terms */
|
|
){
|
|
Fts3SegReader *pReader = 0; /* Fts3SegReader object to return */
|
|
+ Fts3HashElem *pE; /* Iterator variable */
|
|
Fts3HashElem **aElem = 0; /* Array of term hash entries to scan */
|
|
int nElem = 0; /* Size of array at aElem */
|
|
int rc = SQLITE_OK; /* Return Code */
|
|
|
|
if( isPrefix ){
|
|
int nAlloc = 0; /* Size of allocated array at aElem */
|
|
- Fts3HashElem *pE = 0; /* Iterator variable */
|
|
|
|
for(pE=fts3HashFirst(&p->pendingTerms); pE; pE=fts3HashNext(pE)){
|
|
char *zKey = (char *)fts3HashKey(pE);
|
|
@@ -1276,7 +1276,7 @@ int sqlite3Fts3SegReaderPending(
|
|
}
|
|
|
|
}else{
|
|
- Fts3HashElem *pE = fts3HashFindElem(&p->pendingTerms, zTerm, nTerm);
|
|
+ pE = fts3HashFindElem(&p->pendingTerms, zTerm, nTerm);
|
|
if( pE ){
|
|
aElem = &pE;
|
|
nElem = 1;
|