fix crash getting new mail when rules.dat has incorrect host name, r=naving, sr=sspitzer 149059

git-svn-id: svn://10.0.0.236/trunk@128765 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%netscape.com
2002-09-03 23:27:56 +00:00
parent 9ed8195acd
commit 2fd391f622

View File

@@ -5177,7 +5177,7 @@ PRBool nsMsgIMAPFolderACL::SetFolderRightsForUser(const char *userName, const ch
}
if (ourUserName &&
(!strcmp(ourUserName, myUserName.get()) || !strcmp(ourUserName, IMAP_ACL_ANYONE_STRING)))
(myUserName.Equals(ourUserName) || !strcmp(ourUserName, IMAP_ACL_ANYONE_STRING)))
{
// if this is setting an ACL for me, cache it in the folder pref flags
UpdateACLCache();
@@ -5188,6 +5188,9 @@ PRBool nsMsgIMAPFolderACL::SetFolderRightsForUser(const char *userName, const ch
const char *nsMsgIMAPFolderACL::GetRightsStringForUser(const char *inUserName)
{
if (!inUserName)
return nsnull;
nsXPIDLCString userName;
userName.Assign(inUserName);
if (!userName.Length())