summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-03 20:01:16 (GMT)
committerhobbs <hobbs>2000-11-03 20:01:16 (GMT)
commit610fb498bcd71cf41d9b3019e07d0bb509ff3337 (patch)
treea9fc261395fa8551ebe3c77255d9d7fd365fe14c
parentc3064b1f4544c841d840a76bcebdb93c4caf23f7 (diff)
downloadtcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.zip
tcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.tar.gz
tcl-610fb498bcd71cf41d9b3019e07d0bb509ff3337.tar.bz2
moved Tcl_GetThreadData call after Tcl_FindExecutable
-rw-r--r--generic/tclMain.c6
1 files 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);