summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-24 09:49:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-09-24 09:49:26 (GMT)
commit61f1b48673082213d42d068c83f9ff64ff0a22e7 (patch)
tree2bec07d34e636048e251f5acddcef75377c2122f /unix/tclUnixThrd.c
parente8149e594fd90d29d28cee16c503ad31280afdc9 (diff)
downloadtcl-61f1b48673082213d42d068c83f9ff64ff0a22e7.zip
tcl-61f1b48673082213d42d068c83f9ff64ff0a22e7.tar.gz
tcl-61f1b48673082213d42d068c83f9ff64ff0a22e7.tar.bz2
Fix allocLock usage
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index ae6d96a..ec5102b 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -700,10 +700,8 @@ Tcl_Mutex *
Tcl_GetAllocMutex(void)
{
#if TCL_THREADS
- PMutex **allocLockPtrPtr = &allocLockPtr;
-
pthread_once(&allocLockInitOnce, allocLockInit);
- return (Tcl_Mutex *) allocLockPtrPtr;
+ return (Tcl_Mutex *) &allocLockPtr;
#else
return NULL;
#endif