summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-04-07 00:58:21 (GMT)
committerstanton <stanton@noemail.net>1999-04-07 00:58:21 (GMT)
commitd89ab984e437ed35b196e0ce833d2880e78f21a7 (patch)
treea0f8951de9de638469e2ca95286a2dda5ff779e4
parent7f1a10d9ea92764d5e2366491ff5c5f5a5fc963f (diff)
downloadtk-d89ab984e437ed35b196e0ce833d2880e78f21a7.zip
tk-d89ab984e437ed35b196e0ce833d2880e78f21a7.tar.gz
tk-d89ab984e437ed35b196e0ce833d2880e78f21a7.tar.bz2
* generic/tkMain.c (Tk_MainEx): Changed to reset result before
calling Tcl_EvalFile. The ensures that error messages will be generated cleanly. FossilOrigin-Name: a6f0580da9e3db362815f82ab11e3d4a6ec46146
-rw-r--r--generic/tkMain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c
index eaead05..63c9fbf 100644
--- a/generic/tkMain.c
+++ b/generic/tkMain.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: tkMain.c,v 1.1.4.6 1999/03/10 07:13:44 stanton Exp $
+ * RCS: @(#) $Id: tkMain.c,v 1.1.4.7 1999/04/07 00:58:22 stanton Exp $
*/
#include <ctype.h>
@@ -225,6 +225,7 @@ Tk_MainEx(argc, argv, appInitProc, interp)
*/
if (fileName != NULL) {
+ Tcl_ResetResult(interp);
code = Tcl_EvalFile(interp, fileName);
if (code != TCL_OK) {
/*