From: Ilia Alshanetsky Date: Wed, 7 Mar 2007 00:55:49 +0000 (+0000) Subject: Fixed calloc wrapper X-Git-Tag: php-5.2.2RC1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0638ac76514fcd3d64014781b802d7a4de10920f;p=php Fixed calloc wrapper --- 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; }