diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 995d85f7ebf..a5779ef3fe2 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -146,7 +146,7 @@ mro_subclasses(PyTypeObject *type) { PyTypeObject *subclass; PyObject *ref, *subclasses, *old_mro; - int i, n, r; + int i, n, r = 0; subclasses = type->tp_subclasses; if (subclasses == NULL)