diff options
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 54c4e01..c37dda7 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -537,8 +537,9 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields) { int i, result; PyObject *s, *l = PyTuple_New(num_fields); - if (!l) return 0; - for(i = 0; i < num_fields; i++) { + if (!l) + return 0; + for (i = 0; i < num_fields; i++) { s = PyUnicode_FromString(attrs[i]); if (!s) { Py_DECREF(l); |