From fc24ca5f1915f9870be8fe0dc28fdcb572508eb7 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 31 Dec 2018 21:49:51 +1100 Subject: [PATCH] initialize a pointer to prevent coverity complaints --- Changes | 6 ++++++ polygon.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index f6eb87be..355c7ea5 100644 --- 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 ============ diff --git a/polygon.c b/polygon.c index db296be9..54923b47 100644 --- 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) { -- 2.39.5