File nxtvepg-2.8.0-threadfix.patch of Package nxtvepg
---
epgui/epgmain.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- epgui/epgmain.c.orig
+++ epgui/epgmain.c
@@ -2168,15 +2168,15 @@ int main( int argc, char *argv[] )
if ( IS_GUI_MODE(mainOpts) || IS_DUMP_MODE(mainOpts) )
{
+ // initialize Tcl interpreter and compile all scripts
+ // Tk is only initialized if a GUI will be opened
+ ui_init(argc, argv, IS_GUI_MODE(mainOpts));
+
#ifndef WIN32
exitAsyncHandler = Tcl_AsyncCreate(AsyncHandler_AppTerminate, NULL);
signalAsyncHandler = Tcl_AsyncCreate(AsyncHandler_Signalled, NULL);
#endif
- // initialize Tcl interpreter and compile all scripts
- // Tk is only initialized if a GUI will be opened
- ui_init(argc, argv, IS_GUI_MODE(mainOpts));
-
encIso88591 = Tcl_GetEncoding(interp, "iso8859-1");
RcFile_Init();