summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2005-02-10 19:03:59 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2005-02-10 19:03:59 (GMT)
commit79cafbd6c0706fdb54e160111eb9a04bfcd5da64 (patch)
tree56b0fd7c53bd90836dc69af2cc9e86a1bee077de /generic/tclBasic.c
parent07e0b116171eb0e1b10cd691be7995103106a174 (diff)
downloadtcl-79cafbd6c0706fdb54e160111eb9a04bfcd5da64.zip
tcl-79cafbd6c0706fdb54e160111eb9a04bfcd5da64.tar.gz
tcl-79cafbd6c0706fdb54e160111eb9a04bfcd5da64.tar.bz2
added comments
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index ea3bdf8..f61fc6a 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.75.2.12 2005/02/10 18:58:35 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.75.2.13 2005/02/10 19:03:59 msofer Exp $
*/
#include "tclInt.h"
@@ -4011,6 +4011,11 @@ Tcl_EvalObjEx(interp, objPtr, flags)
objv = (Tcl_Obj **) ckalloc(objc*sizeof(Tcl_Obj *));
}
#undef TEOE_PREALLOC
+ /*
+ * Copy the list elements here, to avoid a segfault if objPtr
+ * loses its List internal rep [Bug 1119369]
+ */
+
for (i=0; i < objc; i++) {
objv[i] = listRepPtr->elements[i];
Tcl_IncrRefCount(objv[i]);