diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-01-26 09:23:41 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-01-26 09:23:41 -0500 |
commit | a8efc9601da1fb1402253124767edbb1b1270a8b (patch) | |
tree | 8987a1777943cabc604c5a4c1589ff49dc66ed17 /Objects/bytesobject.c | |
parent | d7770d9becf8c901dc1832d7ae0ace759839ef2c (diff) | |
download | cpython-git-a8efc9601da1fb1402253124767edbb1b1270a8b.tar.gz |
ensure ilen is initialized when it is assigned to len
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index bf919b53de..154640ee58 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 { |