зеркало из https://github.com/mozilla/pjs.git
FIx for bug 28349, don't addref a null pointer oh dude!. R=alecf, A=phil
This commit is contained in:
Родитель
4ee0d8c5c7
Коммит
71df3cdba7
|
@ -672,8 +672,12 @@ NS_IMETHODIMP
|
|||
nsStreamConverter::GetIdentity(nsIMsgIdentity * *aIdentity)
|
||||
{
|
||||
if (!aIdentity) return NS_ERROR_NULL_POINTER;
|
||||
/*
|
||||
We don't have an identity for the local folders account,
|
||||
we will return null but it is not an error!
|
||||
*/
|
||||
*aIdentity = mIdentity;
|
||||
NS_ADDREF(*aIdentity);
|
||||
NS_IF_ADDREF(*aIdentity);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче