Fix bug 102921 "Mozilla crashes when Cache in profile dir points
to nonexistent directory". Change to fail nsDiskCacheDevice::Init() if mCacheDirectory is nsnull. sr=darin. git-svn-id: svn://10.0.0.236/trunk@114912 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -277,7 +277,8 @@ nsDiskCacheDevice::Init()
|
||||
nsresult rv;
|
||||
|
||||
NS_ENSURE_TRUE(!mInitialized, NS_ERROR_FAILURE);
|
||||
|
||||
|
||||
if (!mCacheDirectory) return NS_ERROR_FAILURE;
|
||||
rv = mBindery.Init();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user