diff options
author | dgp <dgp@users.sourceforge.net> | 2011-04-21 12:58:31 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-04-21 12:58:31 (GMT) |
commit | 3dee0582a464245f4ebfb6cc887e198566d3f035 (patch) | |
tree | b8ecdf481ef7cee8415ecfaad655ad6d985cbbf0 /generic/tclObj.c | |
parent | 445fd51fa9afc1afece5244fbaa88454f3d310c5 (diff) | |
download | tcl-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/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index 43f0d2e..7b9bb61 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.c @@ -3597,6 +3597,10 @@ SetCmdNameFromAny(interp, objPtr) Namespace *currNsPtr; register ResolvedCmdName *resPtr; + if (interp == NULL) { + return TCL_ERROR; + } + /* * Get "objPtr"s string representation. Make it up-to-date if necessary. */ |