summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-26 14:23:41 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-26 14:23:41 (GMT)
commita8efc9601da1fb1402253124767edbb1b1270a8b (patch)
tree8987a1777943cabc604c5a4c1589ff49dc66ed17 /Objects
parentd7770d9becf8c901dc1832d7ae0ace759839ef2c (diff)
downloadcpython-a8efc9601da1fb1402253124767edbb1b1270a8b.zip
cpython-a8efc9601da1fb1402253124767edbb1b1270a8b.tar.gz
cpython-a8efc9601da1fb1402253124767edbb1b1270a8b.tar.bz2
ensure ilen is initialized when it is assigned to len
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index bf919b5..154640e 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 {