From 49a14aec1a0aca882321df160ad18576749c19c4 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Wed, 12 Jun 2002 19:36:14 +0000 Subject: fixed [Bug 568123] --- ChangeLog | 5 +++++ generic/tclBasic.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4402e66..3679e28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-12 Miguel Sofer + + * tclBasic.c (Tcl_DeleteTrace): fixed [Bug 568123] (thanks to + Hemang Lavana) + 2002-06-12 Jeff Hobbs * 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; -- cgit v0.12