diff options
author | davygrvy <davygrvy@pobox.com> | 2004-01-11 20:36:48 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2004-01-11 20:36:48 (GMT) |
commit | 94666a58986c34d79f367f3f25f2de0aebb5db75 (patch) | |
tree | 92a215eed05488fe4794c1e06930a9983e217e78 /win/tclWinThrd.c | |
parent | fa1e5ceb2e015ff282cbab3b1770daf6dbd0492d (diff) | |
download | tcl-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]
Diffstat (limited to 'win/tclWinThrd.c')
-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); /* |