Just throw if a null visitor is passed. Bug 309459, patch by Adam Guthrie
<ispiked@gmail.com>, r+sr=darin git-svn-id: svn://10.0.0.236/trunk@185753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c5f8f523fd
commit
b5ffdbb1ea
2
mozilla/netwerk/cache/src/nsCacheService.cpp
vendored
2
mozilla/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