From: Benjamin Peterson Date: Mon, 26 Jan 2015 14:23:41 +0000 (-0500) Subject: ensure ilen is initialized when it is assigned to len X-Git-Tag: v3.5.0a1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8efc9601da1fb1402253124767edbb1b1270a8b;p=thirdparty%2FPython%2Fcpython.git ensure ilen is initialized when it is assigned to len --- diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index bf919b53de15..154640ee5826 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -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 {