diff options
author | hobbs <hobbs> | 2007-02-19 23:49:05 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-02-19 23:49:05 (GMT) |
commit | ad885f8be5199baa5f321468fa6b6c0a3d1b8055 (patch) | |
tree | 740d07c0b58b1c6ee5e850b8748a15478450446d /generic/tclIOUtil.c | |
parent | 8dc5bc8beb82143f5ea0bc0bbdd609a699cf46c6 (diff) | |
download | tcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.zip tcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.tar.gz tcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.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); |