| Index: third_party/sqlite/src/src/mutex.c
|
| diff --git a/third_party/sqlite/src/src/mutex.c b/third_party/sqlite/src/src/mutex.c
|
| index 869a4aeb08d262995bbffcc11b4e6debb8e3088f..bad5a7c113c3f1065afaf1c3bf8d252cc073e389 100644
|
| --- a/third_party/sqlite/src/src/mutex.c
|
| +++ b/third_party/sqlite/src/src/mutex.c
|
| @@ -81,7 +81,7 @@ int sqlite3MutexEnd(void){
|
| */
|
| sqlite3_mutex *sqlite3_mutex_alloc(int id){
|
| #ifndef SQLITE_OMIT_AUTOINIT
|
| - if( sqlite3_initialize() ) return 0;
|
| + if( id<=SQLITE_MUTEX_RECURSIVE && sqlite3_initialize() ) return 0;
|
| #endif
|
| return sqlite3GlobalConfig.mutex.xMutexAlloc(id);
|
| }
|
| @@ -150,4 +150,4 @@ int sqlite3_mutex_notheld(sqlite3_mutex *p){
|
| }
|
| #endif
|
|
|
| -#endif /* SQLITE_MUTEX_OMIT */
|
| +#endif /* !defined(SQLITE_MUTEX_OMIT) */
|
|
|