mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
bug# 29063: Removing about a 100 calls to stat() on startup. r=alecf,racham a=jar
This commit is contained in:
parent
c37e88e9c1
commit
a420f03496
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user