From 48e18ca0cc7a2edcc8320b4e33e31faaa768a64a Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 4 Apr 2000 08:04:41 +0000 Subject: * generic/tclCmdIL.c (InfoVarsCmd): checked for non-NULL procPtr to prevent itcl info override crash [Bug: 4064] --- generic/tclCmdIL.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index 32567a9..24f0642 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdIL.c,v 1.23 2000/01/26 03:37:40 hobbs Exp $ + * RCS: @(#) $Id: tclCmdIL.c,v 1.24 2000/04/04 08:04:41 hobbs Exp $ */ #include "tclInt.h" @@ -1836,7 +1836,7 @@ InfoVarsCmd(dummy, interp, objc, objv) entryPtr = Tcl_NextHashEntry(&search); } } - } else { + } else if (((Interp *)interp)->varFramePtr->procPtr != NULL) { AppendLocals(interp, listPtr, simplePattern, 1); } -- cgit v0.12