summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-02-19 23:50:28 (GMT)
committerhobbs <hobbs>2007-02-19 23:50:28 (GMT)
commit96466cfddf10a573f506e12f2414c193d3418c66 (patch)
tree57bb145f1753dc6ae3bcdfe59b649d19a0c1e6fd /generic/tclIOUtil.c
parent475f0a8175985720308c9bab76a562dce37c093d (diff)
downloadtcl-96466cfddf10a573f506e12f2414c193d3418c66.zip
tcl-96466cfddf10a573f506e12f2414c193d3418c66.tar.gz
tcl-96466cfddf10a573f506e12f2414c193d3418c66.tar.bz2
(Tcl_FSEvalFileEx): safe incr of objPtr ref
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index affc185..dc49a50 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.138 2006/11/28 22:20:28 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.139 2007/02/19 23:50:28 hobbs Exp $
*/
#include "tclInt.h"
@@ -1755,6 +1755,7 @@ Tcl_FSEvalFileEx(
result = TCL_ERROR;
objPtr = Tcl_NewObj();
+ Tcl_IncrRefCount(objPtr);
if (Tcl_FSStat(pathPtr, &statBuf) == -1) {
Tcl_SetErrno(errno);