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/tclScan.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/tclScan.c')
-rw-r--r-- | generic/tclScan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c index 47fa025..f5ec509 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.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: tclScan.c,v 1.32 2009/07/16 21:24:40 dgp Exp $ + * RCS: @(#) $Id: tclScan.c,v 1.33 2009/09/07 07:28:38 das Exp $ */ #include "tclInt.h" @@ -712,6 +712,7 @@ Tcl_ScanObjCmd( if (!(flags & SCAN_SUPPRESS)) { objPtr = Tcl_NewIntObj(string - baseString); Tcl_IncrRefCount(objPtr); + CLANG_ASSERT(objs); objs[objIndex++] = objPtr; } nconversions++; @@ -819,6 +820,7 @@ Tcl_ScanObjCmd( if (!(flags & SCAN_SUPPRESS)) { objPtr = Tcl_NewStringObj(string, end-string); Tcl_IncrRefCount(objPtr); + CLANG_ASSERT(objs); objs[objIndex++] = objPtr; } string = end; @@ -869,6 +871,7 @@ Tcl_ScanObjCmd( if (!(flags & SCAN_SUPPRESS)) { objPtr = Tcl_NewIntObj((int)sch); Tcl_IncrRefCount(objPtr); + CLANG_ASSERT(objs); objs[objIndex++] = objPtr; } break; @@ -973,6 +976,7 @@ Tcl_ScanObjCmd( } } Tcl_SetDoubleObj(objPtr, dvalue); + CLANG_ASSERT(objs); objs[objIndex++] = objPtr; string = end; } |