summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-10 14:08:59 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-10 14:08:59 (GMT)
commite595fefe85b468cabc5e2cbebb030a525b46228f (patch)
treefd13890baadf162d3adb1e345913afdb219d18c5
parente76d16d3eba7f034fc003f1061736c298b03c74f (diff)
downloadtcl-e595fefe85b468cabc5e2cbebb030a525b46228f.zip
tcl-e595fefe85b468cabc5e2cbebb030a525b46228f.tar.gz
tcl-e595fefe85b468cabc5e2cbebb030a525b46228f.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 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;