diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-06-18 18:08:39 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-06-18 18:08:39 +0000 |
commit | bc10d7730ca8b4373d64061e640865b23fdddf1f (patch) | |
tree | 160ca3077497e4102684daa65f4f0c5a0cb32aaa /src/mutex.c | |
parent | 01bf29966d616fe6e93837bbca529c082fdb3415 (diff) | |
download | sqlite-bc10d7730ca8b4373d64061e640865b23fdddf1f.tar.gz sqlite-bc10d7730ca8b4373d64061e640865b23fdddf1f.zip |
Add a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236)
FossilOrigin-Name: 8b23b719440aca9fca7e8f409729c3318ff3f80c
Diffstat (limited to 'src/mutex.c')
-rw-r--r-- | src/mutex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mutex.c b/src/mutex.c index 1b399a40d..9b8dfda89 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -19,7 +19,7 @@ ** implementation is suitable for testing. ** debugging purposes ** -** $Id: mutex.c,v 1.24 2008/06/18 17:09:10 danielk1977 Exp $ +** $Id: mutex.c,v 1.25 2008/06/18 18:08:39 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -80,6 +80,9 @@ int sqlite3_mutex_end(void){ ** Retrieve a pointer to a static mutex or allocate a new dynamic one. */ sqlite3_mutex *sqlite3_mutex_alloc(int id){ +#ifndef SQLITE_OMIT_AUTOINIT + if( sqlite3_initialize() ) return 0; +#endif return sqlite3Config.mutex.xMutexAlloc(id); } |