diff options
author | davygrvy <davygrvy@noemail.net> | 2004-01-11 20:36:47 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@noemail.net> | 2004-01-11 20:36:47 (GMT) |
commit | 2a4c5d260f1d809847a890922184f064fe664c29 (patch) | |
tree | 92a215eed05488fe4794c1e06930a9983e217e78 /win | |
parent | 4c3758e6ddfbb7c12d4adb80a6ade6eab8b0dab6 (diff) | |
download | tcl-2a4c5d260f1d809847a890922184f064fe664c29.zip tcl-2a4c5d260f1d809847a890922184f064fe664c29.tar.gz tcl-2a4c5d260f1d809847a890922184f064fe664c29.tar.bz2 |
* win/tclWinThrd.c (Tcl_ConditionNotify): condPtr must be dereferenced
to see if there are waiters else uninitialized datum is manipulated.
[Bug 849007]
FossilOrigin-Name: 6885a5fa491538a447df22914d64dbea9abbd3a7
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinThrd.c | 4 |
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); /* |