summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-07-07 21:40:18 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-07-07 21:40:18 (GMT)
commite20bdb2a97b3bb74093fc5a2219a6cff091c9c2d (patch)
tree2cc06dcbfbbf8052e107b97ffb9f69c6258d4417
parent20168c3b159cde2d92308cb17dd6c8cf8a2e56bf (diff)
downloadtcl-e20bdb2a97b3bb74093fc5a2219a6cff091c9c2d.zip
tcl-e20bdb2a97b3bb74093fc5a2219a6cff091c9c2d.tar.gz
tcl-e20bdb2a97b3bb74093fc5a2219a6cff091c9c2d.tar.bz2
* generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of setting
the interp result found by Don Porter.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclCmdIL.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7bc062f..c7c2c31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-07 Andreas Kupries <andreask@activestate.com>
+
+ * generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of setting
+ the interp result found by Don Porter.
+
2008-07-07 Donal K. Fellows <dkf@users.sf.net>
* doc/regexp.n, doc/regsub.n: Correct examples. [Bug 1982642]
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index c73f41f..4eef275 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -16,7 +16,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.142 2008/06/30 01:10:46 das Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.143 2008/07/07 21:40:18 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -1044,7 +1044,7 @@ InfoFrameCmd(
int levels =
(iPtr->cmdFramePtr == NULL ? 0 : iPtr->cmdFramePtr->level);
- Tcl_SetIntObj(Tcl_GetObjResult(interp), levels);
+ Tcl_SetObjResult(interp, Tcl_NewIntObj (levels));
return TCL_OK;
} else if (objc != 2) {
Tcl_WrongNumArgs(interp, 1, objv, "?number?");