summaryrefslogtreecommitdiffstats
path: root/generic/tclStubLib.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-10 14:17:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-10 14:17:19 (GMT)
commit15f02f424cbc25390850f6be03592853eab1fa8b (patch)
tree9e6e9eace4c71b81049226179fa6f212072cd869 /generic/tclStubLib.c
parent2fd9e3776b8a12528a7f665d2c2d11926f0749b6 (diff)
parentc20c0a1e755698c4828b1aa5fcf4bfa18d54036b (diff)
downloadtcl-15f02f424cbc25390850f6be03592853eab1fa8b.zip
tcl-15f02f424cbc25390850f6be03592853eab1fa8b.tar.gz
tcl-15f02f424cbc25390850f6be03592853eab1fa8b.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.
Diffstat (limited to 'generic/tclStubLib.c')
-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;