mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-02 05:54:29 +03:00
Fix mem3.c (broken by (5320)). (CVS 5321)
FossilOrigin-Name: fef90a21aea11f15371d3fcf44548d786dd8819b
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
** This version of the memory allocation subsystem is included
|
||||
** in the build only if SQLITE_ENABLE_MEMSYS5 is defined.
|
||||
**
|
||||
** $Id: mem5.c,v 1.9 2008/06/27 13:27:04 danielk1977 Exp $
|
||||
** $Id: mem5.c,v 1.10 2008/06/27 14:05:25 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -411,6 +411,10 @@ static int memsys5Init(void *NotUsed){
|
||||
int nMinLog; /* Log of minimum allocation size in bytes*/
|
||||
int iOffset;
|
||||
|
||||
if( !zByte ){
|
||||
return SQLITE_ERROR;
|
||||
}
|
||||
|
||||
nMinLog = memsys5Log(sqlite3Config.mnReq);
|
||||
mem5.nAtom = (1<<nMinLog);
|
||||
while( sizeof(Mem5Link)>mem5.nAtom ){
|
||||
|
||||
Reference in New Issue
Block a user