mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-24 15:50:33 +03:00
Merge pull request #6818 from radarhere/uninitialized
Initialize unsigned char variables
This commit is contained in:
commit
f1f17799c6
|
@ -1717,7 +1717,7 @@ ImagingQuantize(Imaging im, int colors, int mode, int kmeans) {
|
||||||
|
|
||||||
withAlpha = !strcmp(im->mode, "RGBA");
|
withAlpha = !strcmp(im->mode, "RGBA");
|
||||||
int transparency = 0;
|
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 (i = y = 0; y < im->ysize; y++) {
|
||||||
for (x = 0; x < im->xsize; x++, i++) {
|
for (x = 0; x < im->xsize; x++, i++) {
|
||||||
p[i].v = im->image32[y][x];
|
p[i].v = im->image32[y][x];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user