From 8c8d8e51384939bc47c12e375ba040d1717a2f76 Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 23 May 2013 13:31:09 +0000 Subject: 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. --- unix/tkUnixEvent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12