aboutsummaryrefslogtreecommitdiff
path: root/src/mutex_w32.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-02-25 14:25:31 +0000
committerdrh <drh@noemail.net>2015-02-25 14:25:31 +0000
commitcbb3f33c56414d2e5f70af3099e2945420b51cee (patch)
treed64ad86c3ffe315fa06b8e33fe37b0e261715611 /src/mutex_w32.c
parentb492e23b42c504b72c4cb2ecc431abacae216847 (diff)
downloadsqlite-cbb3f33c56414d2e5f70af3099e2945420b51cee.tar.gz
sqlite-cbb3f33c56414d2e5f70af3099e2945420b51cee.zip
Make sure the sqlite3_mutex.id field is initialized in the Win32
mutex implementation, even when SQLITE_DEBUG is turned off. FossilOrigin-Name: 6d132e7a224ee68b5cefe9222944aac5760ffc20
Diffstat (limited to 'src/mutex_w32.c')
-rw-r--r--src/mutex_w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex_w32.c b/src/mutex_w32.c
index 284355f57..6786614d8 100644
--- a/src/mutex_w32.c
+++ b/src/mutex_w32.c
@@ -194,8 +194,8 @@ static sqlite3_mutex *winMutexAlloc(int iType){
case SQLITE_MUTEX_RECURSIVE: {
p = sqlite3MallocZero( sizeof(*p) );
if( p ){
-#ifdef SQLITE_DEBUG
p->id = iType;
+#ifdef SQLITE_DEBUG
#ifdef SQLITE_WIN32_MUTEX_TRACE_DYNAMIC
p->trace = 1;
#endif
@@ -216,8 +216,8 @@ static sqlite3_mutex *winMutexAlloc(int iType){
}
#endif
p = &winMutex_staticMutexes[iType-2];
-#ifdef SQLITE_DEBUG
p->id = iType;
+#ifdef SQLITE_DEBUG
#ifdef SQLITE_WIN32_MUTEX_TRACE_STATIC
p->trace = 1;
#endif