summaryrefslogtreecommitdiffstats
path: root/Objects/enumobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r--Objects/enumobject.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c
index ebe7e7c..aac88db 100644
--- a/Objects/enumobject.c
+++ b/Objects/enumobject.c
@@ -230,10 +230,7 @@ reversed_next(reversedobject *ro)
PyErr_Clear();
}
ro->index = -1;
- if (ro->seq != NULL) {
- Py_DECREF(ro->seq);
- ro->seq = NULL;
- }
+ Py_CLEAR(ro->seq);
return NULL;
}