]> granicus.if.org Git - python/commitdiff
Initialize a variable. Hope this makes things work for Guido.
authorMichael W. Hudson <mwh@python.net>
Tue, 26 Nov 2002 17:49:11 +0000 (17:49 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 26 Nov 2002 17:49:11 +0000 (17:49 +0000)
It's odd that gcc on my ibook didn't complain about this.

Objects/typeobject.c

index 995d85f7ebf16ad72a0715eb88cfa9a5f4760e32..a5779ef3fe2d4c2b7d2cf19f56e16d1c9329b98e 100644 (file)
@@ -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)