diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/attach.c | 2 | ||||
-rw-r--r-- | src/test_bestindex.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/attach.c b/src/attach.c index ae19adb89..4a6a25bf0 100644 --- a/src/attach.c +++ b/src/attach.c @@ -85,7 +85,7 @@ static void attachFunc( char *zErr = 0; unsigned int flags; Db *aNew; /* New array of Db pointers */ - Db *pNew; /* Db object for the newly attached database */ + Db *pNew = 0; /* Db object for the newly attached database */ char *zErrDyn = 0; sqlite3_vfs *pVfs; diff --git a/src/test_bestindex.c b/src/test_bestindex.c index 65f063e50..f6e0678ce 100644 --- a/src/test_bestindex.c +++ b/src/test_bestindex.c @@ -766,11 +766,11 @@ static int tclFindFunction( if( Tcl_GetIntFromObj(interp, pObj, &iRet) ){ rc = SQLITE_ERROR; }else if( iRet>0 ){ - int nName = strlen(zName); - int nByte = nName + 1 + sizeof(TestFindFunction); + sqlite3_int64 nName = strlen(zName); + sqlite3_int64 nByte = nName + 1 + sizeof(TestFindFunction); TestFindFunction *pNew = 0; - pNew = (TestFindFunction*)sqlite3_malloc(nByte); + pNew = (TestFindFunction*)sqlite3_malloc64(nByte); if( pNew==0 ){ iRet = 0; }else{ |