diff options
author | hobbs <hobbs> | 2007-02-19 23:50:28 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-02-19 23:50:28 (GMT) |
commit | 96466cfddf10a573f506e12f2414c193d3418c66 (patch) | |
tree | 57bb145f1753dc6ae3bcdfe59b649d19a0c1e6fd /generic | |
parent | 475f0a8175985720308c9bab76a562dce37c093d (diff) | |
download | tcl-96466cfddf10a573f506e12f2414c193d3418c66.zip tcl-96466cfddf10a573f506e12f2414c193d3418c66.tar.gz tcl-96466cfddf10a573f506e12f2414c193d3418c66.tar.bz2 |
(Tcl_FSEvalFileEx): safe incr of objPtr ref
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIOUtil.c | 3 |
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); |