From: Antony Dovgal <tony2001@php.net> Date: Tue, 28 Mar 2006 21:58:01 +0000 (+0000) Subject: initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it... X-Git-Tag: php-5.1.3RC2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fa58ec003716068ea6b2aa6a0ea71c7b8ed0bc2;p=php initialize bucket #0 with nulls (normally it shouldn't be used at all, but if it is - we don't want any memory issues, do we?) --- diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c index 0926c744c4..3da112708e 100644 --- a/Zend/zend_objects_API.c +++ b/Zend/zend_objects_API.c @@ -33,6 +33,7 @@ ZEND_API void zend_objects_store_init(zend_objects_store *objects, zend_uint ini objects->top = 1; /* Skip 0 so that handles are true */ objects->size = init_size; objects->free_list_head = -1; + memset(&objects->object_buckets[0], 0, sizeof(zend_object_store_bucket)); } ZEND_API void zend_objects_store_destroy(zend_objects_store *objects)