/ Check-in [580dae46]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 580dae4615353d73c7d096107571bd60fec5b0f2
User & Date: mistachkin 2015-03-04 20:18:55
Context
2015-03-04
23:14
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config() options. check-in: c298ea0b user: drh tags: trunk
20:18
Fix harmless compiler warning. check-in: 580dae46 user: mistachkin tags: trunk
15:35
Refinement to the wording of the documentation on depreciated functions. check-in: 04a59d6f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3_snippet.c.

  1249   1249   
  1250   1250         /* Loop through all columns of the table being considered for snippets.
  1251   1251         ** If the iCol argument to this function was negative, this means all
  1252   1252         ** columns of the FTS3 table. Otherwise, only column iCol is considered.
  1253   1253         */
  1254   1254         for(iRead=0; iRead<pTab->nColumn; iRead++){
  1255   1255           SnippetFragment sF = {0, 0, 0, 0};
  1256         -        int iS;
         1256  +        int iS = 0;
  1257   1257           if( iCol>=0 && iRead!=iCol ) continue;
  1258   1258   
  1259   1259           /* Find the best snippet of nFToken tokens in column iRead. */
  1260   1260           rc = fts3BestSnippet(nFToken, pCsr, iRead, mCovered, &mSeen, &sF, &iS);
  1261   1261           if( rc!=SQLITE_OK ){
  1262   1262             goto snippet_out;
  1263   1263           }