From 1bf1b64c37cca6c7c3f9d7fa3dc95b9a5f41527a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 28 Mar 2004 21:09:37 +0000 Subject: [PATCH] Initialize the complete struct --- Zend/zend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend.c b/Zend/zend.c index 5d177bd828..c01d0d9ac6 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -405,7 +405,7 @@ static FILE *zend_fopen_wrapper(const char *filename, char **opened_path) static void register_standard_class(TSRMLS_D) { - zend_standard_class_def = malloc(sizeof(zend_class_entry)); + zend_standard_class_def = calloc(1, sizeof(zend_class_entry)); zend_standard_class_def->type = ZEND_INTERNAL_CLASS; zend_standard_class_def->name_length = sizeof("stdClass") - 1; -- 2.50.1