diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2008-07-07 21:39:19 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2008-07-07 21:39:19 (GMT) |
commit | 8b6d66d78f619c4fd34527002384c8d1230dfdad (patch) | |
tree | 836de50080cfa911c884b92d6a439ed3413a56df /generic/tclCmdIL.c | |
parent | 6073313758d7fd6219f28592a1ce587a739672a9 (diff) | |
download | tcl-8b6d66d78f619c4fd34527002384c8d1230dfdad.zip tcl-8b6d66d78f619c4fd34527002384c8d1230dfdad.tar.gz tcl-8b6d66d78f619c4fd34527002384c8d1230dfdad.tar.bz2 |
* generic/tclCmdIL.c (InfoFrameCmd): Fixed unsafe idiom of setting
the interp result found by Don Porter.
FossilOrigin-Name: 771ed27a859e8a33d683951ebc580d6be938766b
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r-- | generic/tclCmdIL.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |