mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Just throw if a null visitor is passed. Bug 309459, patch by Adam Guthrie
<ispiked@gmail.com>, r+sr=darin
This commit is contained in:
parent
082e6d08af
commit
f89e435042
2
netwerk/cache/src/nsCacheService.cpp
vendored
2
netwerk/cache/src/nsCacheService.cpp
vendored
@ -721,6 +721,8 @@ nsCacheService::IsStorageEnabledForPolicy_Locked(nsCacheStoragePolicy storagePo
|
||||
|
||||
NS_IMETHODIMP nsCacheService::VisitEntries(nsICacheVisitor *visitor)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(visitor);
|
||||
|
||||
nsAutoLock lock(mCacheServiceLock);
|
||||
|
||||
if (!(mEnableDiskDevice || mEnableMemoryDevice))
|
||||
|
Loading…
x
Reference in New Issue
Block a user