From 0638ac76514fcd3d64014781b802d7a4de10920f Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 7 Mar 2007 00:55:49 +0000 Subject: [PATCH] Fixed calloc wrapper --- Zend/zend_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index 0b6036f2e1..c77ab47028 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -86,9 +86,9 @@ inline static void * __zend_malloc(size_t len) exit(1); } -inline static void * __zend_calloc(size_t len) +inline static void * __zend_calloc(size_t nmemb, size_t len) { - void *tmp = __zend_malloc(len); + void *tmp = _safe_malloc(nmemb, len, 0); memset(tmp, 0, len); return tmp; } -- 2.50.1