diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclBasic.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2002-06-12 Miguel Sofer <msofer@users.sourceforge.net> + + * tclBasic.c (Tcl_DeleteTrace): fixed [Bug 568123] (thanks to + Hemang Lavana) + 2002-06-12 Jeff Hobbs <jeffh@ActiveState.com> * win/tclWinFile.c: corrected the symbolic link handling code to diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 22a8379..67456a2 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.58 2002/06/11 15:42:19 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.59 2002/06/12 19:36:14 msofer Exp $ */ #include "tclInt.h" @@ -4970,7 +4970,7 @@ Tcl_DeleteTrace(interp, trace) while ( (*tracePtr2) != NULL && (*tracePtr2) != tracePtr ) { tracePtr2 = &((*tracePtr2)->nextPtr); } - if ( tracePtr2 == NULL ) { + if ( *tracePtr2 == NULL ) { return; } (*tracePtr2) = (*tracePtr2)->nextPtr; |