/ Check-in [a14fa876]
Login

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

Overview
Comment:Fix an uninitialized variable causing a problem during fts5 table initialization.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fts5
Files: files | file ages | folders
SHA1: a14fa876f0eb66028e302b908967cc4a05ede9fc
User & Date: dan 2014-08-09 18:22:59
Context
2014-08-11
19:44
Replace the hash table borrowed from fts3. check-in: 617e2fac user: dan tags: fts5
2014-08-09
18:22
Fix an uninitialized variable causing a problem during fts5 table initialization. check-in: a14fa876 user: dan tags: fts5
18:02
Use multiple memory allocations for a single Fts5Structure object. This is probably less efficient but much easier to get right. check-in: 2821825f user: dan tags: fts5
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5_storage.c.

   164    164   int sqlite3Fts5StorageOpen(
   165    165     Fts5Config *pConfig, 
   166    166     Fts5Index *pIndex, 
   167    167     int bCreate, 
   168    168     Fts5Storage **pp,
   169    169     char **pzErr                    /* OUT: Error message */
   170    170   ){
   171         -  int rc;
          171  +  int rc = SQLITE_OK;
   172    172     Fts5Storage *p;                 /* New object */
   173    173     int nByte;                      /* Bytes of space to allocate */
   174    174   
   175    175     nByte = sizeof(Fts5Storage)               /* Fts5Storage object */
   176    176           + pConfig->nCol * sizeof(i64);      /* Fts5Storage.aTotalSize[] */
   177    177     *pp = p = (Fts5Storage*)sqlite3_malloc(nByte);
   178    178     if( !p ) return SQLITE_NOMEM;