mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Initialize rv otherwise checking it later could return wrong results.
This commit is contained in:
parent
51bb03f56e
commit
872660a7a6
@ -93,7 +93,9 @@ NS_IMETHODIMP
|
||||
nsMsgAccount::GetIncomingServer(nsIMsgIncomingServer * *aIncomingServer)
|
||||
{
|
||||
if (!aIncomingServer) return NS_ERROR_NULL_POINTER;
|
||||
nsresult rv;
|
||||
//Need to initialize this otherwise if there's already an m_incomingServer, this
|
||||
//will be unitialized.
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
// need to call SetKey() first!
|
||||
if (!m_accountKey) return NS_ERROR_NOT_INITIALIZED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user