summaryrefslogtreecommitdiffstats
path: root/generic/tclEnsemble.c
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2021-05-18 22:09:41 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2021-05-18 22:09:41 (GMT)
commita201f0f3838bd1574ea59075e9d4db242d2e6a61 (patch)
tree94f06df3543375dc0f15d7c6e76ed93dfdc6a366 /generic/tclEnsemble.c
parent1c9f5c87416a863ae166c4ec0938d0b72a238636 (diff)
downloadtcl-a201f0f3838bd1574ea59075e9d4db242d2e6a61.zip
tcl-a201f0f3838bd1574ea59075e9d4db242d2e6a61.tar.gz
tcl-a201f0f3838bd1574ea59075e9d4db242d2e6a61.tar.bz2
Fix for issue [e39cb3f462631a99], namespace is removed from other namespace
paths before deletion is complete
Diffstat (limited to 'generic/tclEnsemble.c')
-rw-r--r--generic/tclEnsemble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclEnsemble.c b/generic/tclEnsemble.c
index 929f3ef..ccd43b9 100644
--- a/generic/tclEnsemble.c
+++ b/generic/tclEnsemble.c
@@ -165,7 +165,7 @@ TclNamespaceEnsembleCmd(
const char *simpleName;
int index, done;
- if (nsPtr == NULL || nsPtr->flags & NS_DYING) {
+ if (nsPtr == NULL || nsPtr->flags & NS_DEAD) {
if (!Tcl_InterpDeleted(interp)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"tried to manipulate ensemble of deleted namespace",
@@ -1730,7 +1730,7 @@ NsEnsembleImplementationCmdNR(
return TCL_ERROR;
}
- if (ensemblePtr->nsPtr->flags & NS_DYING) {
+ if (ensemblePtr->nsPtr->flags & NS_DEAD) {
/*
* Don't know how we got here, but make things give up quickly.
*/