summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 4130c66..77352a1 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -3913,6 +3913,10 @@ SetNsNameFromAny(interp, objPtr)
Namespace *nsPtr, *dummy1Ptr, *dummy2Ptr;
register ResolvedNsName *resNamePtr;
+ if (interp == NULL) {
+ return TCL_ERROR;
+ }
+
/*
* Get the string representation. Make it up-to-date if necessary.
*/