summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-08 22:44:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-08 22:44:49 (GMT)
commit978b1c10b76aed1e7c18d325b3f25cfa9a4fcb0d (patch)
treed69f1e02d383bb9a9b3a1ba3cbc3f5666ba1b4a4 /generic/tclDictObj.c
parent435b2f0430293700795f70f619053e29dee68eaf (diff)
downloadtcl-978b1c10b76aed1e7c18d325b3f25cfa9a4fcb0d.zip
tcl-978b1c10b76aed1e7c18d325b3f25cfa9a4fcb0d.tar.gz
tcl-978b1c10b76aed1e7c18d325b3f25cfa9a4fcb0d.tar.bz2
Fix things so we can pass our own test suite for TIP#212...
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 9fadc83..5863cd2 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclDictObj.c,v 1.22 2004/10/08 15:05:05 dkf Exp $
+ * RCS: @(#) $Id: tclDictObj.c,v 1.23 2004/10/08 22:44:49 dkf Exp $
*/
#include "tclInt.h"
@@ -2787,7 +2787,7 @@ DictUpdateCmd(interp, objc, objv)
dictPtr = Tcl_ObjGetVar2(interp, objv[2], NULL, 0);
if (dictPtr == NULL) {
- return TCL_OK;
+ return result;
}
/*
@@ -2825,7 +2825,7 @@ DictUpdateCmd(interp, objc, objv)
*/
if (Tcl_ObjSetVar2(interp, objv[2], NULL, dictPtr,
- TCL_LEAVE_ERR_MSG) != TCL_OK) {
+ TCL_LEAVE_ERR_MSG) == NULL) {
Tcl_DiscardResult(&sr);
if (allocdict) {
TclDecrRefCount(dictPtr);