aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-06-19 01:03:17 +0000
committerdrh <drh@noemail.net>2008-06-19 01:03:17 +0000
commit65bbf29ee3ba51dafd14872d705387b29ab1f2cf (patch)
treec5f0f545df9d66244c94774a4c9151846ec6ab70 /src/main.c
parentf7141990544d890600a565e9dfc8e27ce1b69fda (diff)
downloadsqlite-65bbf29ee3ba51dafd14872d705387b29ab1f2cf.tar.gz
sqlite-65bbf29ee3ba51dafd14872d705387b29ab1f2cf.zip
Bug fixes: Plug a memory leak introduced by the previous check-in. Get
the amalgamation to the point where it will compile. (CVS 5241) FossilOrigin-Name: 005f8eaef5ae05cef5c76f3afe299eaa2cf8af2f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4f61cd2ba..870b9f30f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.451 2008/06/19 00:16:08 drh Exp $
+** $Id: main.c,v 1.452 2008/06/19 01:03:18 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -76,7 +76,9 @@ int sqlite3_initialize(void){
if( sqlite3IsInit ) return SQLITE_OK;
rc = sqlite3MutexInit();
if( rc==SQLITE_OK ){
+#ifndef SQLITE_MUTEX_NOOP
sqlite3_mutex *pMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
+#endif
sqlite3_mutex_enter(pMutex);
if( sqlite3IsInit==0 ){
sqlite3IsInit = 1;