From 345b0f44c30d3d42f9a0088718aa712b1d0754d5 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 13 Sep 2014 21:57:58 +0200 Subject: Use more accurate sizeof This is allocating an array of zval*s, not zval**s. --- Zend/zend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1