mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Initialize unsigned char variables
This commit is contained in:
parent
fff0760594
commit
318b658c9c
|
@ -1717,7 +1717,7 @@ ImagingQuantize(Imaging im, int colors, int mode, int kmeans) {
|
|||
|
||||
withAlpha = !strcmp(im->mode, "RGBA");
|
||||
int transparency = 0;
|
||||
unsigned char r, g, b;
|
||||
unsigned char r = 0, g = 0, b = 0;
|
||||
for (i = y = 0; y < im->ysize; y++) {
|
||||
for (x = 0; x < im->xsize; x++, i++) {
|
||||
p[i].v = im->image32[y][x];
|
||||
|
|
Loading…
Reference in New Issue
Block a user