ensure ilen is initialized when it is assigned to len

This commit is contained in:
Benjamin Peterson 2015-01-26 09:23:41 -05:00
parent d7770d9bec
commit a8efc9601d
1 changed files with 1 additions and 1 deletions

View File

@ -870,9 +870,9 @@ _PyBytes_Format(PyObject *format, PyObject *args)
temp = format_long(iobj, flags, prec, c, temp = format_long(iobj, flags, prec, c,
&pbuf, &ilen); &pbuf, &ilen);
Py_DECREF(iobj); Py_DECREF(iobj);
len = ilen;
if (!temp) if (!temp)
goto error; goto error;
len = ilen;
sign = 1; sign = 1;
} }
else { else {