summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixEvent.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-05-23 13:31:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-05-23 13:31:09 (GMT)
commit8c8d8e51384939bc47c12e375ba040d1717a2f76 (patch)
tree2e738c788725eac11a37793d78e2a58c83fec641 /unix/tkUnixEvent.c
parent87bf3a06657cebfa60f9342700840162a8053df5 (diff)
downloadtk-8c8d8e51384939bc47c12e375ba040d1717a2f76.zip
tk-8c8d8e51384939bc47c12e375ba040d1717a2f76.tar.gz
tk-8c8d8e51384939bc47c12e375ba040d1717a2f76.tar.bz2
Extra bit of safety. Since we check whether xinitMutex is "still NULL"
to detect a threads-disabled Tcl, we should be explicitly certain it has an initial value of NULL.
Diffstat (limited to 'unix/tkUnixEvent.c')
-rw-r--r--unix/tkUnixEvent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c
index b7f8f75..7d0a5b7 100644
--- a/unix/tkUnixEvent.c
+++ b/unix/tkUnixEvent.c
@@ -130,7 +130,7 @@ TkpOpenDisplay(
unsigned int use_xkb = 0;
#if defined(XKEYCODETOKEYSYM_IS_DEPRECATED) && defined(TCL_THREADS)
static int xinited = 0;
- TCL_DECLARE_MUTEX(xinitMutex);
+ static Tcl_Mutex xinitMutex = NULL;
if (!xinited) {
Tcl_MutexLock(&xinitMutex);