summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-03-07 00:55:49 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-03-07 00:55:49 +0000
commit0638ac76514fcd3d64014781b802d7a4de10920f (patch)
treefaf332222ae88ebebc0239a1826fa90d1fa44dca /Zend/zend_alloc.h
parent4a614cd6b146f47b1fc976162366a201ad80c3fb (diff)
downloadphp-git-0638ac76514fcd3d64014781b802d7a4de10920f.tar.gz
Fixed calloc wrapper
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h4
1 files 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;
}