diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-10 14:08:59 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-10 14:08:59 (GMT) |
commit | 6d80a782d0346ad68115511a1d4813a920c489ca (patch) | |
tree | fd13890baadf162d3adb1e345913afdb219d18c5 /generic/tclStubLib.c | |
parent | 9f45d4d696ae334cf1828b80a10658a773085be2 (diff) | |
download | tcl-6d80a782d0346ad68115511a1d4813a920c489ca.zip tcl-6d80a782d0346ad68115511a1d4813a920c489ca.tar.gz tcl-6d80a782d0346ad68115511a1d4813a920c489ca.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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c index 39e94c8..ceee8f3 100644 --- a/generic/tclStubLib.c +++ b/generic/tclStubLib.c @@ -67,6 +67,7 @@ Tcl_InitStubs(interp, version, exact) int exact; { CONST char *actualVersion = NULL; + ClientData pkgData = NULL; TclStubs *stubsPtr; /* @@ -80,7 +81,7 @@ Tcl_InitStubs(interp, version, exact) 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; } @@ -110,7 +111,7 @@ Tcl_InitStubs(interp, version, exact) } } } - tclStubsPtr = stubsPtr; + tclStubsPtr = (TclStubs *)pkgData; if (tclStubsPtr->hooks) { tclPlatStubsPtr = tclStubsPtr->hooks->tclPlatStubs; |