summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
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 {