зеркало из https://github.com/mozilla/pjs.git
bug# 29063: Removing about a 100 calls to stat() on startup. r=alecf,racham a=jar
This commit is contained in:
Родитель
9e2f6de16a
Коммит
796d454195
|
@ -155,14 +155,17 @@ static PRBool GetProfileDirectory(nsFileSpec& outSpec)
|
|||
{
|
||||
delete gProfileDir; // All that for nothing. sigh.
|
||||
gProfileDir = nsnull;
|
||||
return PR_FALSE;
|
||||
}
|
||||
NS_ASSERTION(*gProfileDir == currProfileDirSpec, "Profile spec does not match!");
|
||||
|
||||
if (!gProfileDir->Exists())
|
||||
gProfileDir->CreateDir();
|
||||
}
|
||||
|
||||
if (!gProfileDir)
|
||||
return PR_FALSE;
|
||||
|
||||
if (!gProfileDir->Exists())
|
||||
gProfileDir->CreateDir();
|
||||
outSpec = *gProfileDir;
|
||||
return PR_TRUE;
|
||||
} // GetProfileDirectory
|
||||
|
|
Загрузка…
Ссылка в новой задаче