mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Fix assertion to not fire when it shouldn't. Bug 303003, patch by Radek
'sysKin' Czyz <syskin@syskin.cjb.net>, r=alfredkayser@nl.ibm.com, sr=biesi
This commit is contained in:
parent
647cbff151
commit
d9d2951fb4
5
netwerk/cache/src/nsDiskCacheDevice.cpp
vendored
5
netwerk/cache/src/nsDiskCacheDevice.cpp
vendored
@ -407,9 +407,10 @@ nsDiskCacheDevice::FindEntry(nsCString * key, PRBool *collision)
|
||||
|
||||
*collision = PR_FALSE;
|
||||
|
||||
#if DEBUG /*because we shouldn't be called for active entries */
|
||||
#if DEBUG /* because we shouldn't be called for active entries */
|
||||
binding = mBindery.FindActiveBinding(hashNumber);
|
||||
NS_ASSERTION(!binding, "FindEntry() called for a bound entry.");
|
||||
NS_ASSERTION(!binding || strcmp(binding->mCacheEntry->Key()->get(), key->get()) != 0,
|
||||
"FindEntry() called for a bound entry.");
|
||||
binding = nsnull;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user