summaryrefslogtreecommitdiffstats
path: root/generic/tkConsole.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-09-16 08:18:40 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-09-16 08:18:40 (GMT)
commitd1d338264e13c42787531f48244b432ae55b6fb7 (patch)
tree674899afb310e42de3daaa5561ecbef4fa2b7a07 /generic/tkConsole.c
parentc0a0d15a19ac54d03dfd622ff61838bb7dccc8fa (diff)
parentda54602493ccf28707320190ca559915a08e3003 (diff)
downloadtk-bug_d9fdfa435d.zip
tk-bug_d9fdfa435d.tar.gz
tk-bug_d9fdfa435d.tar.bz2
merge core-8-6-branchbug_d9fdfa435d
Diffstat (limited to 'generic/tkConsole.c')
-rw-r--r--generic/tkConsole.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkConsole.c b/generic/tkConsole.c
index 8bfbe9b..a6a8cbf 100644
--- a/generic/tkConsole.c
+++ b/generic/tkConsole.c
@@ -318,7 +318,7 @@ Tk_InitConsoleChannels(
* Tk_CreateConsoleWindow --
*
* Initialize the console. This code actually creates a new application
- * and associated interpreter. This effectivly hides the implementation
+ * and associated interpreter. This effectively hides the implementation
* from the main application.
*
* Results:
@@ -344,9 +344,13 @@ Tk_CreateConsoleWindow(
/* Init an interp with Tcl and Tk */
Tcl_Interp *consoleInterp = Tcl_CreateInterp();
if (Tcl_Init(consoleInterp) != TCL_OK) {
+ Tcl_Obj *result_obj = Tcl_GetObjResult(consoleInterp);
+ Tcl_SetObjResult(interp, result_obj);
goto error;
}
if (Tk_Init(consoleInterp) != TCL_OK) {
+ Tcl_Obj *result_obj = Tcl_GetObjResult(consoleInterp);
+ Tcl_SetObjResult(interp, result_obj);
goto error;
}