diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-03-07 00:55:49 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-03-07 00:55:49 +0000 |
commit | 0638ac76514fcd3d64014781b802d7a4de10920f (patch) | |
tree | faf332222ae88ebebc0239a1826fa90d1fa44dca /Zend | |
parent | 4a614cd6b146f47b1fc976162366a201ad80c3fb (diff) | |
download | php-git-0638ac76514fcd3d64014781b802d7a4de10920f.tar.gz |
Fixed calloc wrapper
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_alloc.h | 4 |
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; } |