From 3e60cacfd598cf58a188062174ce9eaf21e22611 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Fri, 3 Sep 2010 08:37:42 +0200 Subject: [PATCH] app/core: Init bestcolor in gimpimage-convert.c Init bestcolor in gimpimage-convert.c to fix warning about "may be used uninitialized in this function". --- app/core/gimpimage-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/gimpimage-convert.c b/app/core/gimpimage-convert.c index f1f28eaf20..c1353ac600 100644 --- a/app/core/gimpimage-convert.c +++ b/app/core/gimpimage-convert.c @@ -2652,7 +2652,7 @@ fill_inverse_cmap_rgb (QuantizeObj *quantobj, int colorlist[MAXNUMCOLORS]; int numcolors; /* number of candidate colors */ /* This array holds the actually closest colormap index for each cell. */ - int bestcolor[BOX_R_ELEMS * BOX_G_ELEMS * BOX_B_ELEMS]; + int bestcolor[BOX_R_ELEMS * BOX_G_ELEMS * BOX_B_ELEMS] = { 0, }; /* Convert cell coordinates to update box id */ R >>= BOX_R_LOG;