/ Check-in [620a8a2b]
Login

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

Overview
Comment:Change an error message in FTS3 to avoid using an uninitialized variable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 620a8a2b38f5f2ad3db304b2bc88360285c174db
User & Date: drh 2009-12-02 20:25:57
Context
2009-12-03
01:01
Add links from C/C++ interfaces to their equivalent SQL functions. Comment changes only - no changes to code. check-in: acce10f7 user: drh tags: trunk
2009-12-02
20:25
Change an error message in FTS3 to avoid using an uninitialized variable. check-in: 620a8a2b user: drh tags: trunk
18:16
Fix an uninitialized value read in sqlite3async.c. check-in: 1cf2136c user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3_tokenizer.c.

204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
      z[n] = '\0';
      sqlite3Fts3Dequote(z);
      z = &z[n+1];
    }
    rc = m->xCreate(iArg, aArg, ppTok);
    assert( rc!=SQLITE_OK || *ppTok );
    if( rc!=SQLITE_OK ){
      *pzErr = sqlite3_mprintf("unknown tokenizer: %s", z);
    }else{
      (*ppTok)->pModule = m; 
    }
    sqlite3_free(aArg);
  }

  sqlite3_free(zCopy);







|







204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
      z[n] = '\0';
      sqlite3Fts3Dequote(z);
      z = &z[n+1];
    }
    rc = m->xCreate(iArg, aArg, ppTok);
    assert( rc!=SQLITE_OK || *ppTok );
    if( rc!=SQLITE_OK ){
      *pzErr = sqlite3_mprintf("unknown tokenizer");
    }else{
      (*ppTok)->pModule = m; 
    }
    sqlite3_free(aArg);
  }

  sqlite3_free(zCopy);