[Bug 523065] libjar: use malloc instead of calloc for zlib. r=tglek

This commit is contained in:
Alfred Kayser 2009-10-21 11:58:49 +02:00
parent 682f208abf
commit 94b107fca0

View File

@ -124,10 +124,10 @@ static void *
zlibAlloc(void *opaque, uInt items, uInt size)
{
nsRecyclingAllocator *zallocator = (nsRecyclingAllocator *)opaque;
if (gZlibAllocator) {
return gZlibAllocator->Calloc(items, size);
if (zallocator) {
return gZlibAllocator->Malloc(items * size);
}
return calloc(items, size);
return malloc(items * size);
}
static void