1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add a couple of pointer type casts to test file test_quota.c.

FossilOrigin-Name: 0df061b0554c749cade4ec8ddabe453934825bb2
This commit is contained in:
dan
2011-06-15 17:04:43 +00:00
parent 7c65a882f3
commit b0a328324f
3 changed files with 10 additions and 10 deletions

View File

@@ -323,7 +323,7 @@ static int quotaOpen(
pFile=pFile->pNext){}
if( pFile==0 ){
int nName = strlen(zName);
pFile = sqlite3_malloc( sizeof(*pFile) + nName + 1 );
pFile = (quotaFile *)sqlite3_malloc( sizeof(*pFile) + nName + 1 );
if( pFile==0 ){
quotaLeave();
pSubOpen->pMethods->xClose(pSubOpen);
@@ -683,7 +683,7 @@ int sqlite3_quota_set(
quotaLeave();
return SQLITE_OK;
}
pGroup = sqlite3_malloc( sizeof(*pGroup) + nPattern + 1 );
pGroup = (quotaGroup *)sqlite3_malloc( sizeof(*pGroup) + nPattern + 1 );
if( pGroup==0 ){
quotaLeave();
return SQLITE_NOMEM;