diff options
author | stanton <stanton@noemail.net> | 1999-05-22 01:20:09 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1999-05-22 01:20:09 (GMT) |
commit | b2b32ae547b69377ed50c0309b1f7f6fd5571a45 (patch) | |
tree | 4b7c61e6c670f227cf4d603907157fb6246d2d50 /generic/tclCmdAH.c | |
parent | 0499890222c417d23b4ffbb24b6f819f9f80c429 (diff) | |
download | tcl-b2b32ae547b69377ed50c0309b1f7f6fd5571a45.zip tcl-b2b32ae547b69377ed50c0309b1f7f6fd5571a45.tar.gz tcl-b2b32ae547b69377ed50c0309b1f7f6fd5571a45.tar.bz2 |
Merged changes from scriptics-tclpro-1-3-b2 branch
FossilOrigin-Name: f692388d0781830f1c23ef04ebbfb509ecc8d671
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 8aa6880..d59dfeb 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.5 1999/04/16 00:46:43 stanton Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.6 1999/05/22 01:20:12 stanton Exp $ */ #include "tclInt.h" @@ -1517,7 +1517,7 @@ GetTypeFromMode(mode) /* *---------------------------------------------------------------------- * - * Tcl_FoObjCmd -- + * Tcl_ForObjCmd -- * * This procedure is invoked to process the "for" Tcl command. * See the user documentation for details on what it does. @@ -1559,6 +1559,13 @@ Tcl_ForObjCmd(dummy, interp, objc, objv) return result; } while (1) { + /* + * We need to reset the result before passing it off to + * Tcl_ExprBooleanObj. Otherwise, any error message will be appended + * to the result of the last evaluation. + */ + + Tcl_ResetResult(interp); result = Tcl_ExprBooleanObj(interp, objv[2], &value); if (result != TCL_OK) { return result; |