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/tclUtf.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/tclUtf.c')
-rw-r--r-- | generic/tclUtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index 16acab2..31e52ba 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUtf.c,v 1.39 2009/02/11 15:28:59 dgp Exp $ + * RCS: @(#) $Id: tclUtf.c,v 1.40 2009/09/07 07:28:38 das Exp $ */ #include "tclInt.h" @@ -707,7 +707,7 @@ Tcl_UniCharAtIndex( register const char *src, /* The UTF-8 string to dereference. */ register int index) /* The position of the desired character. */ { - Tcl_UniChar ch; + Tcl_UniChar ch = 0; while (index >= 0) { index--; |