diff options
author | das <das@noemail.net> | 2009-09-07 07:28:38 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2009-09-07 07:28:38 (GMT) |
commit | 53a740483d317ae894459a659cc96d9cc46912b8 (patch) | |
tree | 9ce27be993bcf700cfffdd10f234b82b35f6c435 /generic/tclFCmd.c | |
parent | a81181ea1a7922c91f02e95e4eab568369362d69 (diff) | |
download | tcl-53a740483d317ae894459a659cc96d9cc46912b8.zip tcl-53a740483d317ae894459a659cc96d9cc46912b8.tar.gz tcl-53a740483d317ae894459a659cc96d9cc46912b8.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:
FossilOrigin-Name: e93f957325ed49415f01559c8162a31df1ee28cf
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; } |