diff options
author | mig <mig@noemail.net> | 2011-04-13 13:09:19 (GMT) |
---|---|---|
committer | mig <mig@noemail.net> | 2011-04-13 13:09:19 (GMT) |
commit | 77e5b9b7a986cdc8b68d38d8777d378fb4aa98af (patch) | |
tree | 13523f8aaf8376791660f1b2b620a68cf75c470a /generic/tclVar.c | |
parent | c12e0db8ba5984af4d328ed8fee115335d993d54 (diff) | |
download | tcl-77e5b9b7a986cdc8b68d38d8777d378fb4aa98af.zip tcl-77e5b9b7a986cdc8b68d38d8777d378fb4aa98af.tar.gz tcl-77e5b9b7a986cdc8b68d38d8777d378fb4aa98af.tar.bz2 |
fix for [Bug 2662380], crash caused by appending to a variable with a write trace that unsets it
FossilOrigin-Name: b7862cf94432546000865d5873c077c3d79c68ca
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r-- | generic/tclVar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index 3312191..a434bae 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -2699,7 +2699,8 @@ Tcl_AppendObjCmd(dummy, interp, objc, objv) varValuePtr = TclPtrSetVar(interp, varPtr, arrayPtr, part1, NULL, objv[i], (TCL_APPEND_VALUE | TCL_LEAVE_ERR_MSG)); - if (varValuePtr == NULL) { + if ((varValuePtr == NULL) || + (varValuePtr == ((Interp *) interp)->emptyObjPtr)) { return TCL_ERROR; } } |