mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
fix infinite loop with certain japanese folder names (dont' use continue in a while loop if you're not actually changing state!)
r=sspitzer
This commit is contained in:
parent
ccd0aca547
commit
d03c27a7ab
@ -528,7 +528,7 @@ nsMsgFolder::parseURI(PRBool needServer)
|
||||
PRBool haveFirst=PR_FALSE;
|
||||
while (token) {
|
||||
// skip leading '/' (and other // style things)
|
||||
if (nsCRT::strcmp(token, "")==0) continue;
|
||||
if (nsCRT::strcmp(token, "")!=0) {
|
||||
|
||||
// add .sbd onto the previous path
|
||||
if (haveFirst) {
|
||||
@ -538,6 +538,7 @@ nsMsgFolder::parseURI(PRBool needServer)
|
||||
|
||||
newPath += token;
|
||||
haveFirst=PR_TRUE;
|
||||
}
|
||||
|
||||
token = nsCRT::strtok(newStr, "/", &newStr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user