summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2008-12-16 15:50:47 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2008-12-16 15:50:47 (GMT)
commitd96f5fd46fbc01bb5872e17889c060c950d8348b (patch)
treea0a6acc9b4f0509cbf14f7b858e7b515c7bb5a4a
parent037500d28aee14c1ac5aafce81d2fb69bef43059 (diff)
downloadtcl-d96f5fd46fbc01bb5872e17889c060c950d8348b.zip
tcl-d96f5fd46fbc01bb5872e17889c060c950d8348b.tar.gz
tcl-d96f5fd46fbc01bb5872e17889c060c950d8348b.tar.bz2
Re-fix [2431847]
-rw-r--r--generic/tclExecute.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 9fc6dc8..058f93f 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.420 2008/12/15 23:09:24 dkf Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.421 2008/12/16 15:50:47 ferrieux Exp $
*/
#include "tclInt.h"
@@ -7085,10 +7085,7 @@ TclExecuteByteCode(
"%u => ERROR reading leaf dictionary key \"%s\": ",
opnd, O2S(dictPtr)), Tcl_GetObjResult(interp));
} else {
- Tcl_Obj *tmpObj;
-
- TclNewObj(tmpObj);
- Tcl_SetObjResult(interp, tmpObj);
+ Tcl_ResetResult(interp);
Tcl_AppendResult(interp, "key \"", TclGetString(OBJ_AT_TOS),
"\" not known in dictionary", NULL);
TRACE_WITH_OBJ(("%u => ERROR ", opnd), Tcl_GetObjResult(interp));