зеркало из https://github.com/mozilla/pjs.git
bug 239843 fix crash if nsImapIncomingServer tries to log before constructing nsImapProtocol
r=bienvenu, sr=mscott, a=chofmann for 1.7
This commit is contained in:
Родитель
833621e1e4
Коммит
9121fb5d1b
|
@ -3716,6 +3716,10 @@ PRBool nsImapProtocol::CheckNewMail()
|
|||
|
||||
/* static */ void nsImapProtocol::LogImapUrl(const char *logMsg, nsIImapUrl *imapUrl)
|
||||
{
|
||||
// nsImapProtocol is not always constructed before this static method is called
|
||||
if (!IMAP)
|
||||
IMAP = PR_NewLogModule("IMAP");
|
||||
|
||||
if (PR_LOG_TEST(IMAP, PR_LOG_ALWAYS))
|
||||
{
|
||||
nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(imapUrl);
|
||||
|
|
Загрузка…
Ссылка в новой задаче