mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
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?)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user