1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-02 05:54:29 +03:00

Fix C99-style variable declaration issue seen with older versions of MSVC.

FossilOrigin-Name: 14b181e862bd742555c51b87fab59d6f8f6602fe2c18dde3ef3b020779912419
This commit is contained in:
mistachkin
2017-10-07 23:31:33 +00:00
parent a0ac086f15
commit b60424e495
3 changed files with 12 additions and 9 deletions

View File

@@ -2868,6 +2868,10 @@ static void vdbeInvokeSqllog(Vdbe *v){
** VDBE_MAGIC_INIT.
*/
int sqlite3VdbeReset(Vdbe *p){
#ifdef SQLITE_DEBUG
int i;
#endif
sqlite3 *db;
db = p->db;
@@ -2899,7 +2903,6 @@ int sqlite3VdbeReset(Vdbe *p){
#ifdef SQLITE_DEBUG
/* Execute assert() statements to ensure that the Vdbe.apCsr[] and
** Vdbe.aMem[] arrays have already been cleaned up. */
int i;
if( p->apCsr ) for(i=0; i<p->nCursor; i++) assert( p->apCsr[i]==0 );
if( p->aMem ){
for(i=0; i<p->nMem; i++) assert( p->aMem[i].flags==MEM_Undefined );