From 1a98038027e4def5643a20068500cdb63ca1ea66 Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 30 Aug 2006 17:24:24 +0000 Subject: * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId FossilOrigin-Name: 592c2c91269108f27144045fad7b83bb53b51cd4 --- generic/tclBasic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 1941ca0..e13d01e 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.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: tclBasic.c,v 1.75.2.21 2006/03/06 21:56:13 dgp Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.75.2.22 2006/08/30 17:24:25 hobbs Exp $ */ #include "tclInt.h" @@ -363,6 +363,7 @@ Tcl_CreateInterp() iPtr->emptyObjPtr = Tcl_NewObj(); /* another empty object */ Tcl_IncrRefCount(iPtr->emptyObjPtr); iPtr->resultSpace[0] = 0; + iPtr->threadId = Tcl_GetCurrentThread(); iPtr->globalNsPtr = NULL; /* force creation of global ns below */ iPtr->globalNsPtr = (Namespace *) Tcl_CreateNamespace(interp, "", -- cgit v0.12