summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-06-01 21:38:34 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-06-01 21:38:34 (GMT)
commit9fb09ab047419f92eea30d3b4dc0a3a6b83f58b0 (patch)
treef64716a58409f5582716350a70767ed3630c9cc7 /generic/tclBasic.c
parent854f85bb1700aa6f106cc6a443cb0eb2e917f2de (diff)
downloadtcl-9fb09ab047419f92eea30d3b4dc0a3a6b83f58b0.zip
tcl-9fb09ab047419f92eea30d3b4dc0a3a6b83f58b0.tar.gz
tcl-9fb09ab047419f92eea30d3b4dc0a3a6b83f58b0.tar.bz2
* generic/tclBasic.c: For compatibility with earlier Tcl releases,
* generic/tclResult.c: when a command procedure simply does a * generic/tclTest.c: "return TCL_RETURN;" we must interpret that * tests/result.test: the same as "return Tcl_SetReturnOptions(interp, Tcl_NewObj());" [Bug 1209759].
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 144b2f7..bc1ff3d 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.158 2005/05/30 00:04:45 dkf Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.159 2005/06/01 21:38:40 dgp Exp $
*/
#include "tclInt.h"
@@ -358,7 +358,7 @@ Tcl_CreateInterp()
iPtr->errorCode = NULL;
iPtr->ecVar = Tcl_NewStringObj("errorCode", -1);
Tcl_IncrRefCount(iPtr->ecVar);
- iPtr->returnLevel = 0;
+ iPtr->returnLevel = 1;
iPtr->returnCode = TCL_OK;
iPtr->appendResult = NULL;