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:
bzbarsky@mit.edu 2007-06-18 08:24:17 -07:00
parent 647cbff151
commit d9d2951fb4

View File

@ -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