diff --git a/mozilla/xpcom/base/nsMemoryImpl.cpp b/mozilla/xpcom/base/nsMemoryImpl.cpp index ae0c4aba341..121d2abdb0e 100644 --- a/mozilla/xpcom/base/nsMemoryImpl.cpp +++ b/mozilla/xpcom/base/nsMemoryImpl.cpp @@ -315,6 +315,7 @@ reallocator(void* ptr, PRSize size, PRUint32& counter, PRUint32 max) NS_IMETHODIMP_(void *) nsMemoryImpl::Alloc(PRSize size) { + NS_ASSERTION(size, "nsMemoryImpl::Alloc of 0"); void* result = MALLOC1(size); if (! result) { // Request an asynchronous flush