/ Check-in [01268607]
Login

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

Overview
Comment:Fix an unintialized variable problem in sqlite3ota.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ota-update
Files: files | file ages | folders
SHA1: 01268607515a30d07559648c43034e522605748a
User & Date: dan 2014-09-17 19:05:46
Context
2014-09-18
11:15
Fix an ota bug causing attempts to write to tables with more than 8 columns to fail. check-in: 7da98ca2 user: dan tags: ota-update
2014-09-17
19:05
Fix an unintialized variable problem in sqlite3ota.c. check-in: 01268607 user: dan tags: ota-update
15:20
Add tests and fixes for "PRAGMA ota_mode". check-in: 39df35c4 user: dan tags: ota-update
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/ota/sqlite3ota.c.

   967    967     return (sqlite3_stricmp(z1, z2)!=0);
   968    968   }
   969    969   
   970    970   static void otaLoadTransactionState(sqlite3ota *p, OtaState *pState){
   971    971     assert( p->rc==SQLITE_OK );
   972    972     if( pState->zTbl ){
   973    973       OtaObjIter *pIter = &p->objiter;
   974         -    int rc;
          974  +    int rc = SQLITE_OK;
   975    975   
   976    976       while( rc==SQLITE_OK && pIter->zTbl && (pIter->bCleanup 
   977    977          || otaStrCompare(pIter->zTbl, pState->zTbl) 
   978    978          || otaStrCompare(pIter->zIdx, pState->zIdx)
   979    979       )){
   980    980         rc = otaObjIterNext(p, &p->objiter);
   981    981       }