1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix harmless compiler warnings.

FossilOrigin-Name: ded60f5b3431283d70eb8c41761c0fa9727021e6309d0df0ae3fb0a5274c1299
This commit is contained in:
drh
2023-01-21 00:19:29 +00:00
parent a96cd076fe
commit c1b54fa225
4 changed files with 12 additions and 12 deletions

View File

@@ -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;

View File

@@ -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{