From: Peter Howkins Date: Fri, 10 Aug 2018 23:47:42 +0000 (+0100) Subject: libDtHelp: Cov 89401 X-Git-Tag: 2.3.0a~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0be3e91f4d22c14fa6fa84a7c368f6c5c58a02cc;p=oweals%2Fcde.git libDtHelp: Cov 89401 --- diff --git a/cde/lib/DtHelp/il/ildither.c b/cde/lib/DtHelp/il/ildither.c index 89d24eb7..4d6cfbb7 100644 --- a/cde/lib/DtHelp/il/ildither.c +++ b/cde/lib/DtHelp/il/ildither.c @@ -1024,7 +1024,7 @@ IL_PRIVATE ilBool _ilConvertRGBToPalette ( unsigned short *pPalette; long *pColorTable; ilBool diffusion, chooseColors; - int i, shifts[3], nColors; + int i, shifts[3] = { 0, 0, 0 }, nColors; const unsigned short *pMulTable[3] = { NULL, NULL, NULL }; /* dither other than 484 only: pMul? */ static ilConvertToPaletteInfo defaultConvert = {IL_DIFFUSION, { 4, 8, 4 }, 8, IL_PALETTE, (ilObject)NULL};