From e8bea5cba3179b395a38ee3b0f1bed35101732dd Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 6 Nov 2015 14:10:45 -0500 Subject: [PATCH] Fixed sqlite3 warnings --- corelib/src/sqlite3/sqlite3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/corelib/src/sqlite3/sqlite3.c b/corelib/src/sqlite3/sqlite3.c index 98c3b047..4a7c94db 100644 --- a/corelib/src/sqlite3/sqlite3.c +++ b/corelib/src/sqlite3/sqlite3.c @@ -57026,6 +57026,7 @@ static int balance_nonroot( ** intkey b-tree, then cell i was a divider cell. */ assert( j+1 < ArraySize(apCopy) ); assert( j+1 < nOld ); + if(j+1 < ArraySize(apCopy)) pOld = apCopy[++j]; iNextOld = i + !leafData + pOld->nCell + pOld->nOverflow; if( pOld->nOverflow ){ @@ -58182,8 +58183,8 @@ static void checkPtrmap( char *zContext /* Context description (used for error msg) */ ){ int rc; - u8 ePtrmapType; - Pgno iPtrmapParent; + u8 ePtrmapType = 0; + Pgno iPtrmapParent = 0; rc = ptrmapGet(pCheck->pBt, iChild, &ePtrmapType, &iPtrmapParent); if( rc!=SQLITE_OK ){