diff options
author | dgp <dgp@noemail.net> | 2011-04-21 12:58:31 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-04-21 12:58:31 (GMT) |
commit | 7c27aff4b7f721ba1604524e8987d080641d582d (patch) | |
tree | b8ecdf481ef7cee8415ecfaad655ad6d985cbbf0 /generic/tclObj.c | |
parent | e65eb9c9e1ae98da2af403b30deabb51a0c0df70 (diff) | |
download | tcl-7c27aff4b7f721ba1604524e8987d080641d582d.zip tcl-7c27aff4b7f721ba1604524e8987d080641d582d.tar.gz tcl-7c27aff4b7f721ba1604524e8987d080641d582d.tar.bz2 |
Make sure SetFooFromAny routines react reasonably when passed a NULL interp.
FossilOrigin-Name: 2adc132d5223ca31015c197873552d9d7fd254ab
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. */ |