diff options
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); } |