summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstanton <stanton>1999-04-07 00:58:22 (GMT)
committerstanton <stanton>1999-04-07 00:58:22 (GMT)
commitd19bc526e0e61bab014780e0c276e2750c7e9d92 (patch)
treea0f8951de9de638469e2ca95286a2dda5ff779e4
parentf21b55dfd9019bab094d4d0890897ef5f24941c5 (diff)
downloadtk-d19bc526e0e61bab014780e0c276e2750c7e9d92.zip
tk-d19bc526e0e61bab014780e0c276e2750c7e9d92.tar.gz
tk-d19bc526e0e61bab014780e0c276e2750c7e9d92.tar.bz2
* generic/tkMain.c (Tk_MainEx): Changed to reset result before
calling Tcl_EvalFile. The ensures that error messages will be generated cleanly.
-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) {
/*