diff options
author | dgp <dgp@users.sourceforge.net> | 2005-09-15 16:40:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-09-15 16:40:02 (GMT) |
commit | dad41b847302dce4ebd5139c0568aad2ad7a0776 (patch) | |
tree | 238980bfb093b32ba311f36a2774bde6bba0c4ee /generic/tclBasic.c | |
parent | 75aee26af34aeea93c32910c88c0d5cef7077ff7 (diff) | |
download | tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.zip tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.tar.gz tcl-dad41b847302dce4ebd5139c0568aad2ad7a0776.tar.bz2 |
* generic/tclBasic.c: More callers of TclObjPrintf and
* generic/tclCkalloc.c: TclFormatToErrorInfo.
* generic/tclCmdMZ.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclMain.c:
* generic/tclProc.c:
* generic/tclTimer.c:
* generic/tclUtil.c:
* unix/tclUnixFCmd.c
* unix/configure: autoconf-2.59
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index a58c781..0198a4e 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.173 2005/09/14 21:32:17 dgp Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.174 2005/09/15 16:40:02 dgp Exp $ */ #include "tclInt.h" @@ -4156,8 +4156,9 @@ ProcessUnexpectedResult(interp, returnCode) Tcl_AppendResult(interp, "invoked \"continue\" outside of a loop", (char *) NULL); } else { - TclObjPrintf(NULL, Tcl_GetObjResult(interp), - "command returned bad code: %d", returnCode); + Tcl_Obj *objPtr = Tcl_NewObj(); + TclObjPrintf(NULL, objPtr, "command returned bad code: %d", returnCode); + Tcl_SetObjResult(interp, objPtr); } } |