зеркало из https://github.com/mozilla/pjs.git
fix argument-checking - sending a null server is ok (we'll just give a null identity back)
however, use NS_ENSURE_ARG_POINTER() for aResult! r=sspitzer
This commit is contained in:
Родитель
ba5cbc022b
Коммит
6b46cfd9b6
|
@ -1209,9 +1209,14 @@ NS_IMETHODIMP
|
|||
nsMsgAccountManager::FindAccountForServer(nsIMsgIncomingServer *server,
|
||||
nsIMsgAccount **aResult)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(server);
|
||||
NS_ENSURE_ARG_POINTER(aResult);
|
||||
|
||||
if (!server) {
|
||||
(*aResult) = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
*aResult = nsnull;
|
||||
|
||||
nsXPIDLCString key;
|
||||
rv = server->GetKey(getter_Copies(key));
|
||||
|
|
Загрузка…
Ссылка в новой задаче