summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-09-22 20:32:06 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-09-22 20:32:06 (GMT)
commitf48bcdecf871a829134b40269947502b13c58c73 (patch)
tree95d1fd7e090fa0a6840204e2304b4b8763ba4e87
parent201c3c421c30870cead2b6862a090479cb4ba43e (diff)
downloadtcl-f48bcdecf871a829134b40269947502b13c58c73.zip
tcl-f48bcdecf871a829134b40269947502b13c58c73.tar.gz
tcl-f48bcdecf871a829134b40269947502b13c58c73.tar.bz2
Revise [info frame] so that it stops creating cycles
in the iPtr->cmdFramePtr stack.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclCmdIL.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2096795..e2a5b21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-22 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tclCmdIL.c: Revise [info frame] so that it stops creating
+ cycles in the iPtr->cmdFramePtr stack.
+
2011-09-22 Donal K. Fellows <dkf@users.sf.net>
* doc/re_syntax.n: [Bug 2903743]: Add more magic so that we can do at
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 95532d3..f28e651 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -1163,7 +1163,7 @@ InfoFrameCmd(
lastPtr = runPtr;
runPtr = runPtr->nextPtr;
}
- if (lastPtr && !runPtr) {
+ if (lastPtr && (runPtr != NULL)) {
lastPtr->nextPtr = corPtr->caller.cmdFramePtr;
}
}