summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-07-07 21:39:20 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-07-07 21:39:20 (GMT)
commit42ecaf98ac017a8cb5d769f57fd62677cc92ac4f (patch)
tree836de50080cfa911c884b92d6a439ed3413a56df
parent55aaafebf11934aa7c0820362b78688e70c95438 (diff)
downloadtcl-42ecaf98ac017a8cb5d769f57fd62677cc92ac4f.zip
tcl-42ecaf98ac017a8cb5d769f57fd62677cc92ac4f.tar.gz
tcl-42ecaf98ac017a8cb5d769f57fd62677cc92ac4f.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 5527cdc..3966ff0 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-04 Joe English <jenglish@users.sourceforge.net>
* generic/tclEncoding.c(UtfToUtfProc): Avoid unwanted sign extension
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 861a008..54359af 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -15,7 +15,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.47.2.14 2008/06/16 20:46:15 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.47.2.15 2008/07/07 21:39:22 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -1074,7 +1074,7 @@ InfoFrameCmd(dummy, interp, objc, objv)
? 0
: iPtr->cmdFramePtr->level);
- Tcl_SetIntObj(Tcl_GetObjResult(interp), levels);
+ Tcl_SetObjResult(interp, Tcl_NewIntObj (levels));
return TCL_OK;
} else if (objc == 3) {