summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2012-12-10 14:17:19 (GMT)
committerdgp@users.sourceforge.net <dgp>2012-12-10 14:17:19 (GMT)
commitbe667ee1d6933d572146c4bbf9ddfb07d0353242 (patch)
tree9e6e9eace4c71b81049226179fa6f212072cd869
parent4c70ca88f47d8a74652e9165396c62a3a8e37396 (diff)
parent0b0a9616ee50d8d59b3f7089ac117bdd9661bce8 (diff)
downloadtcl-be667ee1d6933d572146c4bbf9ddfb07d0353242.zip
tcl-be667ee1d6933d572146c4bbf9ddfb07d0353242.tar.gz
tcl-be667ee1d6933d572146c4bbf9ddfb07d0353242.tar.bz2
Restore the initialization of tclStubsPtr from the "Tcl" package clientData
so that we don't close off a potential avenue of future innovations.
-rw-r--r--generic/tclStubLib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c
index b8979df..a9d0f02 100644
--- a/generic/tclStubLib.c
+++ b/generic/tclStubLib.c
@@ -71,6 +71,7 @@ Tcl_InitStubs(
int exact)
{
const char *actualVersion = NULL;
+ ClientData pkgData = NULL;
const TclStubs *stubsPtr;
/*
@@ -84,7 +85,7 @@ Tcl_InitStubs(
return NULL;
}
- actualVersion = stubsPtr->tcl_PkgRequireEx(interp, "Tcl", version, 0, NULL);
+ actualVersion = stubsPtr->tcl_PkgRequireEx(interp, "Tcl", version, 0, &pkgData);
if (actualVersion == NULL) {
return NULL;
}
@@ -114,7 +115,7 @@ Tcl_InitStubs(
}
}
}
- tclStubsPtr = stubsPtr;
+ tclStubsPtr = (TclStubs *)pkgData;
if (tclStubsPtr->hooks) {
tclPlatStubsPtr = tclStubsPtr->hooks->tclPlatStubs;