diff options
author | das <das> | 2009-09-07 07:28:38 (GMT) |
---|---|---|
committer | das <das> | 2009-09-07 07:28:38 (GMT) |
commit | 71eeb99bfbfdcf1437799cb69d10b599f7633293 (patch) | |
tree | 9ce27be993bcf700cfffdd10f234b82b35f6c435 /generic/tclFCmd.c | |
parent | c70d85c03e5455903df2df0534bb0a8ac25b32ac (diff) | |
download | tcl-71eeb99bfbfdcf1437799cb69d10b599f7633293.zip tcl-71eeb99bfbfdcf1437799cb69d10b599f7633293.tar.gz tcl-71eeb99bfbfdcf1437799cb69d10b599f7633293.tar.bz2 |
* generic/tclExecute.c: fix potential uninitialized variable use and
* generic/tclFCmd.c: null dereference flagged by clang static
* generic/tclProc.c: analyzer.
* generic/tclTimer.c:
* generic/tclUtf.c:
* generic/tclExecute.c: silence false positives from clang static
* generic/tclIO.c: analyzer about potential null dereference.
* generic/tclScan.c:
* generic/tclCompExpr.c:
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r-- | generic/tclFCmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index 0e78c4b..6e84177 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFCmd.c,v 1.49 2008/10/06 21:00:37 patthoyts Exp $ + * RCS: @(#) $Id: tclFCmd.c,v 1.50 2009/09/07 07:28:38 das Exp $ */ #include "tclInt.h" @@ -754,6 +754,7 @@ CopyRenameOneFile( if (S_ISDIR(sourceStatBuf.st_mode)) { result = Tcl_FSRemoveDirectory(source, 1, &errorBuffer); if (result != TCL_OK) { + errfile = errorBuffer; if (Tcl_FSEqualPaths(errfile, source) == 0) { errfile = source; } |