Initialize out params before calling the interface.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@159571 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2004-07-21 11:41:50 +00:00
parent 7f0a5f976a
commit f3f3fc5d92

View File

@@ -123,7 +123,7 @@ Py_nsIClassInfo::getattr(const char *name)
nsresult nr;
PyObject *ret = NULL;
if (strcmp(name, "contractID")==0) {
char *str_ret;
char *str_ret = NULL;
Py_BEGIN_ALLOW_THREADS;
nr = pI->GetContractID(&str_ret);
Py_END_ALLOW_THREADS;
@@ -131,7 +131,7 @@ Py_nsIClassInfo::getattr(const char *name)
ret = MakeStringOrNone(str_ret);
nsMemory::Free(str_ret);
} else if (strcmp(name, "classDescription")==0) {
char *str_ret;
char *str_ret = NULL;
Py_BEGIN_ALLOW_THREADS;
nr = pI->GetClassDescription(&str_ret);
Py_END_ALLOW_THREADS;
@@ -139,7 +139,7 @@ Py_nsIClassInfo::getattr(const char *name)
ret = MakeStringOrNone(str_ret);
nsMemory::Free(str_ret);
} else if (strcmp(name, "classID")==0) {
nsIID *iid;
nsIID *iid = NULL;
Py_BEGIN_ALLOW_THREADS;
nr = pI->GetClassID(&iid);
Py_END_ALLOW_THREADS;