summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-04-21 12:58:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-04-21 12:58:31 (GMT)
commit3dee0582a464245f4ebfb6cc887e198566d3f035 (patch)
treeb8ecdf481ef7cee8415ecfaad655ad6d985cbbf0 /generic/tclNamesp.c
parent445fd51fa9afc1afece5244fbaa88454f3d310c5 (diff)
downloadtcl-3dee0582a464245f4ebfb6cc887e198566d3f035.zip
tcl-3dee0582a464245f4ebfb6cc887e198566d3f035.tar.gz
tcl-3dee0582a464245f4ebfb6cc887e198566d3f035.tar.bz2
Make sure SetFooFromAny routines react reasonably when passed a NULL interp.
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.
*/