Do not crash when calling GetNExtCache() if the Disk Cache is not available...

This commit is contained in:
rpotts%netscape.com 2000-09-10 08:11:40 +00:00
parent 897c00d471
commit 8e087079f1

View File

@ -252,7 +252,7 @@ nsMemCache::GetNextCache(nsINetDataCache* *aNextCache)
{
NS_ENSURE_ARG(aNextCache);
*aNextCache = mNextCache;
NS_ADDREF(*aNextCache);
NS_IF_ADDREF(*aNextCache);
return NS_OK;
}