mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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.
This commit is contained in:
parent
ef602147ff
commit
2b4b0643ef
3
netwerk/cache/src/nsDiskCacheDevice.cpp
vendored
3
netwerk/cache/src/nsDiskCacheDevice.cpp
vendored
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user