summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-06 08:25:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-06 08:25:18 (GMT)
commit2a4281604ab70d1943a74f592e151c6a203f0bdd (patch)
treed0fa65dc119e5eae60511a7f375677bfd209d60b /generic/tclObj.c
parent2501ad1ea2dd8592c15e7f3bda1f9c298fa446a6 (diff)
downloadtcl-2a4281604ab70d1943a74f592e151c6a203f0bdd.zip
tcl-2a4281604ab70d1943a74f592e151c6a203f0bdd.tar.gz
tcl-2a4281604ab70d1943a74f592e151c6a203f0bdd.tar.bz2
Additiona patch/suggestion from Gustaf. This indeed fixes the crash in oo.test. Looks good to me, so only waiting for final feedback from Gustaf and eventually feedback from other people.bug_d4e7780ca1
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 283c8d2..29c8e23 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -4220,7 +4220,7 @@ TclSetCmdNameObj(
if (objPtr->typePtr == &tclCmdNameType) {
resPtr = objPtr->internalRep.twoPtrValue.ptr1;
- if (resPtr->cmdPtr == cmdPtr) {
+ if (resPtr != NULL && resPtr->cmdPtr == cmdPtr) {
return;
}
}