diff --git a/coders/wpg.c b/coders/wpg.c index 6496094989..1796efcd7a 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1839,6 +1839,7 @@ static void WPGInitializeRLE(WPGRLEInfo *rle_info) { rle_info->count=0; rle_info->offset=0; + (void) memset(rle_info->pixels,0,sizeof(rle_info->pixels)); } static MagickBooleanType WriteWPGImage(const ImageInfo *image_info,Image *image)