fix infinite loop with certain japanese folder names (dont' use continue in a while loop if you're not actually changing state!)

r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@56756 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2000-01-04 22:14:25 +00:00
parent c58e1c6f4a
commit e2352b8abc

View File

@@ -528,17 +528,18 @@ 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) {
newPath+=".sbd";
newPath += "/";
if (haveFirst) {
newPath+=".sbd";
newPath += "/";
}
newPath += token;
haveFirst=PR_TRUE;
}
newPath += token;
haveFirst=PR_TRUE;
token = nsCRT::strtok(newStr, "/", &newStr);
}