mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-04 05:03:14 +03:00
more initialization
This commit is contained in:
parent
a098c88509
commit
c5bace00e3
|
@ -585,13 +585,14 @@ _fill(PyObject* self, PyObject* args)
|
||||||
if (!im)
|
if (!im)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
buffer[0] = buffer[1] = buffer[2] = buffer[3] = 0;
|
||||||
if (color) {
|
if (color) {
|
||||||
if (!getink(color, im, buffer)) {
|
if (!getink(color, im, buffer)) {
|
||||||
ImagingDelete(im);
|
ImagingDelete(im);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
buffer[0] = buffer[1] = buffer[2] = buffer[3] = 0;
|
|
||||||
|
|
||||||
(void) ImagingFill(im, buffer);
|
(void) ImagingFill(im, buffer);
|
||||||
|
|
||||||
|
@ -1337,6 +1338,8 @@ _putdata(ImagingObject* self, PyObject* args)
|
||||||
INT32 inkint;
|
INT32 inkint;
|
||||||
} u;
|
} u;
|
||||||
|
|
||||||
|
u.inkint = 0;
|
||||||
|
|
||||||
op = PySequence_Fast_GET_ITEM(seq, i);
|
op = PySequence_Fast_GET_ITEM(seq, i);
|
||||||
if (!op || !getink(op, image, u.ink)) {
|
if (!op || !getink(op, image, u.ink)) {
|
||||||
Py_DECREF(seq);
|
Py_DECREF(seq);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user