From 610fb498bcd71cf41d9b3019e07d0bb509ff3337 Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 3 Nov 2000 20:01:16 +0000 Subject: moved Tcl_GetThreadData call after Tcl_FindExecutable --- generic/tclMain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/tclMain.c b/generic/tclMain.c index 5089a93..20ed566 100644 --- a/generic/tclMain.c +++ b/generic/tclMain.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclMain.c,v 1.8 2000/11/03 18:46:12 hobbs Exp $ + * RCS: @(#) $Id: tclMain.c,v 1.9 2000/11/03 20:01:16 hobbs Exp $ */ #include "tcl.h" @@ -152,10 +152,10 @@ Tcl_Main(argc, argv, appInitProc) Tcl_DString argString; ThreadSpecificData *tsdPtr; + Tcl_FindExecutable(argv[0]); + tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - - Tcl_FindExecutable(argv[0]); tsdPtr->interp = interp = Tcl_CreateInterp(); #ifdef TCL_MEM_DEBUG Tcl_InitMemory(interp); -- cgit v0.12