diff --git a/extensions/python/xpcom/src/PyIClassInfo.cpp b/extensions/python/xpcom/src/PyIClassInfo.cpp index bf7b5285fa42..2e2c8f8b1e78 100644 --- a/extensions/python/xpcom/src/PyIClassInfo.cpp +++ b/extensions/python/xpcom/src/PyIClassInfo.cpp @@ -70,6 +70,7 @@ static PyObject *PyGetInterfaces(PyObject *self, PyObject *args) nsIID** iidArray = nsnull; PRUint32 iidCount = 0; nsresult r; + PRUint32 i; Py_BEGIN_ALLOW_THREADS; r = pI->GetInterfaces(&iidCount, &iidArray); Py_END_ALLOW_THREADS; @@ -78,9 +79,11 @@ static PyObject *PyGetInterfaces(PyObject *self, PyObject *args) PyObject *ret = PyTuple_New(iidCount); if (ret==NULL) - return NULL; - for (PRUint32 i=0;i