summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-01-11 20:36:48 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-01-11 20:36:48 (GMT)
commit94666a58986c34d79f367f3f25f2de0aebb5db75 (patch)
tree92a215eed05488fe4794c1e06930a9983e217e78
parentfa1e5ceb2e015ff282cbab3b1770daf6dbd0492d (diff)
downloadtcl-94666a58986c34d79f367f3f25f2de0aebb5db75.zip
tcl-94666a58986c34d79f367f3f25f2de0aebb5db75.tar.gz
tcl-94666a58986c34d79f367f3f25f2de0aebb5db75.tar.bz2
* win/tclWinThrd.c (Tcl_ConditionNotify): condPtr must be dereferenced
to see if there are waiters else uninitialized datum is manipulated. [Bug 849007]
-rw-r--r--win/tclWinThrd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 026a55e..fd6ad65 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinThrd.c,v 1.27 2003/12/24 04:18:23 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinThrd.c,v 1.28 2004/01/11 20:36:48 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -906,7 +906,7 @@ Tcl_ConditionNotify(condPtr)
{
WinCondition *winCondPtr;
ThreadSpecificData *tsdPtr;
- if (condPtr != NULL) {
+ if (*condPtr != NULL) {
winCondPtr = *((WinCondition **)condPtr);
/*