summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-19 22:20:01 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-19 22:20:01 (GMT)
commit21f353c929064a6f5b7ab0395307b808ca9eef3f (patch)
treebcfeefd5cdcf54cb1602bf07647bb31e4126fd6b /generic/tclDictObj.c
parent279edeb409045869695bb787e0e586cf8d1a62b2 (diff)
downloadtcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.zip
tcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.tar.gz
tcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.tar.bz2
Stop losing result codes in [dict with] in some circumstances
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 6d99243..57576e4 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.25 2004/10/19 21:54:06 dgp Exp $
+ * RCS: @(#) $Id: tclDictObj.c,v 1.26 2004/10/19 22:20:04 dkf Exp $
*/
#include "tclInt.h"
@@ -2975,8 +2975,7 @@ DictWithCmd(interp, objc, objv)
if (allocdict) {
TclDecrRefCount(dictPtr);
}
- TclRestoreInterpState(interp, state);
- return TCL_OK;
+ return TclRestoreInterpState(interp, state);
}
} else {
leafPtr = dictPtr;