From 7cd43815d0b5a7b4c81e4fd496673bc241e83eb1 Mon Sep 17 00:00:00 2001 From: welch Date: Tue, 10 Aug 1999 17:17:27 +0000 Subject: Fixed level of indirection in Tcl_GetAllocMutex --- unix/tclUnixThrd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index a9127a7..47e56d7 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -41,6 +41,7 @@ static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER; */ static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER; +static pthread_mutex_t *allocLockPtr = &allocLock; /* * These are for the critical sections inside this file. @@ -279,7 +280,7 @@ Tcl_Mutex * Tcl_GetAllocMutex() { #ifdef TCL_THREADS - return (Tcl_Mutex *)&allocLock; + return (Tcl_Mutex *)&allocLockPtr; #else return NULL; #endif -- cgit v0.12