mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed warning that variable may be uninitialized
This commit is contained in:
parent
93afedfa27
commit
d84e227204
|
@ -502,7 +502,7 @@ getink(PyObject *color, Imaging im, char *ink) {
|
|||
be cast to either UINT8 or INT32 */
|
||||
|
||||
int rIsInt = 0;
|
||||
int tupleSize;
|
||||
int tupleSize = 0;
|
||||
if (PyTuple_Check(color)) {
|
||||
tupleSize = PyTuple_GET_SIZE(color);
|
||||
if (tupleSize == 1) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user