diff options
author | dgp <dgp@users.sourceforge.net> | 2012-12-10 14:15:18 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-12-10 14:15:18 (GMT) |
commit | c20c0a1e755698c4828b1aa5fcf4bfa18d54036b (patch) | |
tree | f5ffbbd5c716452e0e288b3701b663b4ce1c270f /generic | |
parent | b361c43c61d9544db4a10eff54d0405518161253 (diff) | |
parent | 6d80a782d0346ad68115511a1d4813a920c489ca (diff) | |
download | tcl-c20c0a1e755698c4828b1aa5fcf4bfa18d54036b.zip tcl-c20c0a1e755698c4828b1aa5fcf4bfa18d54036b.tar.gz tcl-c20c0a1e755698c4828b1aa5fcf4bfa18d54036b.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')
-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 ff899c0..c98956e 100644 --- a/generic/tclStubLib.c +++ b/generic/tclStubLib.c @@ -67,6 +67,7 @@ Tcl_InitStubs( int exact) { CONST char *actualVersion = NULL; + ClientData pkgData = NULL; TclStubs *stubsPtr; /* @@ -80,7 +81,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; } @@ -110,7 +111,7 @@ Tcl_InitStubs( } } } - tclStubsPtr = stubsPtr; + tclStubsPtr = (TclStubs *)pkgData; if (tclStubsPtr->hooks) { tclPlatStubsPtr = tclStubsPtr->hooks->tclPlatStubs; |