From f3f3fc5d92484cedf1a8a289c4ade8c56574b1e4 Mon Sep 17 00:00:00 2001 From: "mhammond%skippinet.com.au" Date: Wed, 21 Jul 2004 11:41:50 +0000 Subject: [PATCH] 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 --- mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp b/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp index 4ac05d50826..6e033723d94 100644 --- a/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp +++ b/mozilla/extensions/python/xpcom/src/PyIClassInfo.cpp @@ -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;