mirror of https://github.com/python/cpython
ensure ilen is initialized when it is assigned to len
This commit is contained in:
parent
d7770d9bec
commit
a8efc9601d
|
@ -870,9 +870,9 @@ _PyBytes_Format(PyObject *format, PyObject *args)
|
|||
temp = format_long(iobj, flags, prec, c,
|
||||
&pbuf, &ilen);
|
||||
Py_DECREF(iobj);
|
||||
len = ilen;
|
||||
if (!temp)
|
||||
goto error;
|
||||
len = ilen;
|
||||
sign = 1;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue