Fix bug preventing compliation without MEMDEBUG when ENABLE_MEMORY_MANAGE is defined. (CVS 3105)
FossilOrigin-Name: 76912b33b1a15ee4baea9f7c8685933b4d551e91
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 6589d25..a039d89 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
-** @(#) $Id: sqliteInt.h,v 1.485 2006/02/17 12:25:16 danielk1977 Exp $
+** @(#) $Id: sqliteInt.h,v 1.486 2006/02/17 15:01:36 danielk1977 Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -278,6 +278,7 @@
#else
+#define ENTER_MALLOC 0
#define sqliteMalloc(x) sqlite3Malloc(x,1)
#define sqliteMallocRaw(x) sqlite3MallocRaw(x,1)
#define sqliteRealloc(x,y) sqlite3Realloc(x,y)
diff --git a/src/vdbemem.c b/src/vdbemem.c
index 59d7626..57fbe00 100644
--- a/src/vdbemem.c
+++ b/src/vdbemem.c
@@ -119,6 +119,7 @@
z[n+1] = 0;
pMem->z = (char*)z;
pMem->flags &= ~(MEM_Ephem|MEM_Static);
+ assert(0==(1&(int)pMem->z));
return SQLITE_OK;
}