summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-03-28 21:58:01 +0000
committerAntony Dovgal <tony2001@php.net>2006-03-28 21:58:01 +0000
commit1fa58ec003716068ea6b2aa6a0ea71c7b8ed0bc2 (patch)
tree7e166bb076e0f3b946941325120b70d5cafbcf22 /Zend/zend_objects_API.c
parent08e6fded563451dd91d8b529037fbf06939fd6c3 (diff)
downloadphp-git-1fa58ec003716068ea6b2aa6a0ea71c7b8ed0bc2.tar.gz
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?)
Diffstat (limited to 'Zend/zend_objects_API.c')
-rw-r--r--Zend/zend_objects_API.c1
1 files changed, 1 insertions, 0 deletions
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)