]> git.imager.perl.org - imager.git/commitdiff
initialize a pointer to prevent coverity complaints
authorTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:49:51 +0000 (21:49 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 31 Dec 2018 10:49:51 +0000 (21:49 +1100)
Changes
polygon.c

diff --git a/Changes b/Changes
index f6eb87be23e46f5d58e9726b4e95c8b0237ed579..355c7ea5afb7375784e9bf5fe27417323b948f6a 100644 (file)
--- a/Changes
+++ b/Changes
@@ -10,6 +10,12 @@ Coverity finally finished a build, fix a few problems:
    space could result in memory leaks.  This can probably only be
    reproduced on very wide floating-point sample images.
 
+ - convert an array style function parameter pointer to pointer style
+   to prevent confusing Coverity in the T1 bounding box implementation
+
+ - initialize a pointer to prevent Coverity complaining in polygon
+   drawing (it should always end up being set.)
+
 Imager 1.008 - 31 Dec 2018
 ============
 
index db296be983b24a70b2062b170902a4c89c21459c..54923b47e96ee8ddd746c1788c0828d56e52f656 100644 (file)
--- a/polygon.c
+++ b/polygon.c
@@ -572,7 +572,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys,
        k = 0;
        while (k < clc) {
          p_line *left = lset + tllist[k++].n;
-         p_line *current;
+         p_line *current = NULL;
          int acc = left->dir;
 
          while (k < clc && acc) {