mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.397 2007/08/16 04:30:39 drh Exp $
|
||||
** $Id: btree.c,v 1.398 2007/08/16 10:09:02 danielk1977 Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -5741,7 +5741,7 @@ static void checkAppendMsg(
|
||||
pCheck->mxErr--;
|
||||
pCheck->nErr++;
|
||||
va_start(ap, zFormat);
|
||||
zMsg2 = sqlite3VMPrintf(zFormat, ap);
|
||||
zMsg2 = sqlite3VMPrintf(0, zFormat, ap);
|
||||
va_end(ap);
|
||||
if( zMsg1==0 ) zMsg1 = "";
|
||||
if( pCheck->zErrMsg ){
|
||||
@@ -6091,7 +6091,7 @@ char *sqlite3BtreeIntegrityCheck(
|
||||
if( !sCheck.anRef ){
|
||||
unlockBtreeIfUnused(pBt);
|
||||
*pnErr = 1;
|
||||
return sqlite3MPrintf("Unable to malloc %d bytes",
|
||||
return sqlite3MPrintf(p->pSqlite, "Unable to malloc %d bytes",
|
||||
(sCheck.nPage+1)*sizeof(sCheck.anRef[0]));
|
||||
}
|
||||
for(i=0; i<=sCheck.nPage; i++){ sCheck.anRef[i] = 0; }
|
||||
|
Reference in New Issue
Block a user