diff options
author | Nikita Popov <nikic@php.net> | 2014-09-13 21:57:58 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-09-13 21:57:58 +0200 |
commit | 345b0f44c30d3d42f9a0088718aa712b1d0754d5 (patch) | |
tree | 3a447dc47304e602318a805b798e99398c444960 | |
parent | 3defdb18804650ddd82202f5cffbeb779a7a97d7 (diff) | |
download | php-git-345b0f44c30d3d42f9a0088718aa712b1d0754d5.tar.gz |
Use more accurate sizeof
This is allocating an array of zval*s, not zval**s.
-rw-r--r-- | Zend/zend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index de13108673..eee2739dd2 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -509,7 +509,7 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals TSRMLS compiler_globals->last_static_member = zend_hash_num_elements(compiler_globals->class_table); if (compiler_globals->last_static_member) { - compiler_globals->static_members_table = calloc(compiler_globals->last_static_member, sizeof(zval**)); + compiler_globals->static_members_table = calloc(compiler_globals->last_static_member, sizeof(zval*)); } else { compiler_globals->static_members_table = NULL; } |