summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-01-29 02:21:47 (GMT)
committerhobbs <hobbs>2002-01-29 02:21:47 (GMT)
commit7e95a343de3930407968085d9c13b7817593452b (patch)
tree6beb5ca314862ef3208430c662a9617afcb384f9 /generic/tclExecute.c
parenta46479f1dc90ac3d212249debe342d1d8bc48db4 (diff)
downloadtcl-7e95a343de3930407968085d9c13b7817593452b.zip
tcl-7e95a343de3930407968085d9c13b7817593452b.tar.gz
tcl-7e95a343de3930407968085d9c13b7817593452b.tar.bz2
* generic/tclExecute.c (TclExecuteByteCode:INST_LIST): correct
possibly dangerous decr in macro call.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 8cfe624..fbbaa53 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -11,7 +11,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.45 2001/12/11 19:45:52 msofer Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.46 2002/01/29 02:21:47 hobbs Exp $
*/
#include "tclInt.h"
@@ -1786,8 +1786,8 @@ TclExecuteByteCode(interp, codePtr)
opnd = TclGetUInt4AtPtr(pc+1);
valuePtr = Tcl_NewListObj(opnd, &(stackPtr[stackTop - (opnd-1)]));
- for (i = 0; i < opnd; i++) {
- TclDecrRefCount(stackPtr[stackTop--]);
+ for (i = 0; i < opnd; stackTop--, i++) {
+ TclDecrRefCount(stackPtr[stackTop]);
}
PUSH_OBJECT(valuePtr);