/ Check-in [2361b03b]
Login

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

Overview
Comment:Remove another unnecessary local variable initialization from sqlite3VdbeExec()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | micro-optimizations
Files: files | file ages | folders
SHA1: 2361b03b61311aab9b9ec9de040bbb73be31be0d
User & Date: drh 2017-01-31 16:43:36
References
2020-06-03
19:24 New ticket [810dc803] COMMIT command succeeds even though it didn't commit.. (artifact: f620056c user: drh)
Context
2017-01-31
16:49
Remove a C99-style comment. Fixes to the kvtest-speed.sh script. (check-in: 91eb6b62 user: drh tags: micro-optimizations)
16:43
Remove another unnecessary local variable initialization from sqlite3VdbeExec() (check-in: 2361b03b user: drh tags: micro-optimizations)
16:34
Remove an unnecessary initialization of the pOp variable in sqlite3VdbeExec(). (check-in: 02f6293f user: drh tags: micro-optimizations)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

   593    593     if( p->rc==SQLITE_NOMEM ){
   594    594       /* This happens if a malloc() inside a call to sqlite3_column_text() or
   595    595       ** sqlite3_column_text16() failed.  */
   596    596       goto no_mem;
   597    597     }
   598    598     assert( p->rc==SQLITE_OK || (p->rc&0xff)==SQLITE_BUSY );
   599    599     assert( p->bIsReader || p->readOnly!=0 );
   600         -  p->rc = SQLITE_OK;
          600  +//  p->rc = SQLITE_OK;
   601    601     p->iCurrentTime = 0;
   602    602     assert( p->explain==0 );
   603    603     p->pResultSet = 0;
   604    604     db->busyHandler.nBusy = 0;
   605    605     if( db->u1.isInterrupted ) goto abort_due_to_interrupt;
   606    606     sqlite3VdbeIOTraceSql(p);
   607    607   #ifndef SQLITE_OMIT_PROGRESS_CALLBACK