summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-07-04 23:56:57 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-07-04 23:56:57 (GMT)
commit56b81839c7271c23ed51776a7a922d3a49fce775 (patch)
treef133ccfd49ffefe5a864725233fa53011efb8ec7 /generic/tclNamesp.c
parentf41a7b9a9464e3211cf4935e2d0d56994cd727c7 (diff)
downloadtcl-56b81839c7271c23ed51776a7a922d3a49fce775.zip
tcl-56b81839c7271c23ed51776a7a922d3a49fce775.tar.gz
tcl-56b81839c7271c23ed51776a7a922d3a49fce775.tar.bz2
* generic/tclNamesp.c: Fix case where a FQ cmd or ns was being
* generic/tclObj.c: cached in a different interp, tkcon [Bug 1747512]
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 098b8ba..8e25637 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -22,7 +22,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclNamesp.c,v 1.143 2007/06/22 20:42:24 dgp Exp $
+ * RCS: @(#) $Id: tclNamesp.c,v 1.144 2007/07/04 23:56:58 msofer Exp $
*/
#include "tclInt.h"
@@ -2802,6 +2802,7 @@ TclGetNamespaceFromObj(
|| (resPtr->refNsPtr &&
(resPtr->refNsPtr != (Namespace *) TclGetCurrentNamespace(interp)))
|| (nsPtr = resPtr->nsPtr, nsPtr->flags & NS_DEAD)
+ || (interp != nsPtr->interp)
|| (resPtr->nsId != nsPtr->nsId)) {
result = tclNsNameType.setFromAnyProc(interp, objPtr);