diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2002-03-25 16:35:13 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2002-03-25 16:35:13 (GMT) |
commit | bcd3c2b029233968c21c526097f241bc4738e9fd (patch) | |
tree | 72400edb0dcf512eb6c326993743cac44c5db52e /generic/tclBasic.c | |
parent | 7bcede4e2dce9129177513d583c790d72b388988 (diff) | |
download | tcl-bcd3c2b029233968c21c526097f241bc4738e9fd.zip tcl-bcd3c2b029233968c21c526097f241bc4738e9fd.tar.gz tcl-bcd3c2b029233968c21c526097f241bc4738e9fd.tar.bz2 |
Allow NULL callback on trace deletions [Bug 534728]
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 1e9ea32..3f4c5d6 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.52 2002/03/24 19:05:46 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.53 2002/03/25 16:35:14 msofer Exp $ */ #include "tclInt.h" @@ -4963,7 +4963,9 @@ Tcl_DeleteTrace(interp, trace) * Execute any delete callback. */ - ( tracePtr->delProc )( tracePtr->clientData ); + if ( tracePtr->delProc != NULL ) { + ( tracePtr->delProc )( tracePtr->clientData ); + } /* Delete the trace object */ |