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:
alecf%netscape.com 2000-01-26 22:55:16 +00:00
Родитель ba5cbc022b
Коммит 6b46cfd9b6
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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));