diff --git a/modules/libjar/nsJAR.cpp b/modules/libjar/nsJAR.cpp index a38e743fcf2..9e2df718aee 100644 --- a/modules/libjar/nsJAR.cpp +++ b/modules/libjar/nsJAR.cpp @@ -1195,8 +1195,6 @@ nsZipReaderCache::GetInnerZip(nsIFile* zipFile, const char *entry, } else { zip = new nsJAR(); - if (zip == nsnull) - return NS_ERROR_OUT_OF_MEMORY; NS_ADDREF(zip); zip->SetZipReaderCache(this); @@ -1205,8 +1203,10 @@ nsZipReaderCache::GetInnerZip(nsIFile* zipFile, const char *entry, NS_RELEASE(zip); return rv; } - - PRBool collision = mZips.Put(&key, static_cast(zip)); // AddRefs to 2 +#ifdef DEBUG + PRBool collision = +#endif + mZips.Put(&key, static_cast(zip)); // AddRefs to 2 NS_ASSERTION(!collision, "horked"); } *result = zip;