diff options
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 */ |