diff options
author | hobbs <hobbs> | 2007-02-19 23:49:05 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-02-19 23:49:05 (GMT) |
commit | f8accc2ceefd4affea88a00eea19e80fcb599306 (patch) | |
tree | 740d07c0b58b1c6ee5e850b8748a15478450446d /generic/tclIOUtil.c | |
parent | 695a4153a35139e0ea908923ad0cc06106fd6a0f (diff) | |
download | tcl-f8accc2ceefd4affea88a00eea19e80fcb599306.zip tcl-f8accc2ceefd4affea88a00eea19e80fcb599306.tar.gz tcl-f8accc2ceefd4affea88a00eea19e80fcb599306.tar.bz2 |
(Tcl_FSEvalFile): safe incr of objPtr ref
Diffstat (limited to 'generic/tclIOUtil.c')
-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 bda1cab..a587794 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.77.2.33 2006/11/28 22:20:01 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.34 2007/02/19 23:49:05 hobbs Exp $ */ #include "tclInt.h" @@ -1724,6 +1724,7 @@ Tcl_FSEvalFile(interp, pathPtr) result = TCL_ERROR; objPtr = Tcl_NewObj(); + Tcl_IncrRefCount(objPtr); if (Tcl_FSStat(pathPtr, &statBuf) == -1) { Tcl_SetErrno(errno); |