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".
This commit is contained in:
Martin Nordholts 2010-09-03 08:37:42 +02:00
parent b3189cdbf6
commit 3e60cacfd5
1 changed files with 1 additions and 1 deletions

View File

@ -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;