mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +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 */
|
be cast to either UINT8 or INT32 */
|
||||||
|
|
||||||
int rIsInt = 0;
|
int rIsInt = 0;
|
||||||
int tupleSize;
|
int tupleSize = 0;
|
||||||
if (PyTuple_Check(color)) {
|
if (PyTuple_Check(color)) {
|
||||||
tupleSize = PyTuple_GET_SIZE(color);
|
tupleSize = PyTuple_GET_SIZE(color);
|
||||||
if (tupleSize == 1) {
|
if (tupleSize == 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user