summaryrefslogtreecommitdiff
path: root/processor
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-11 14:21:40 +0000
committerXuefer <xuefer@gmail.com>2014-11-11 14:21:40 +0000
commit4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b (patch)
tree995ee316c9b3d7c54df873fbd1a9a066a1a67fdf /processor
parent5eb6e2f585336bcba069db483701508144baa363 (diff)
downloadxcache-4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b.tar.gz
xcache-4bd347e02b7a47b9ba876eaee2f46e4d9f3b614b.zip
kill some warnings
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1565 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor')
-rw-r--r--processor/foot.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/processor/foot.m4 b/processor/foot.m4
index d92d361..9924be0 100644
--- a/processor/foot.m4
+++ b/processor/foot.m4
@@ -121,7 +121,6 @@ dnl }}}
EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_t *src, zend_class_entry **index_to_ce TSRMLS_DC)') dnl {{{
{
xc_processor_t processor;
- size_t i;
memset(&processor, 0, sizeof(processor));
processor.handle_reference = src->have_references;
@@ -135,6 +134,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_
#ifdef ZEND_ENGINE_2
if (src->objects_count) {
+ zend_uint i;
processor.object_handles = emalloc(sizeof(*processor.object_handles) * src->objects_count);
for (i = 0; i < src->objects_count; ++i) {
zend_object *object = emalloc(sizeof(*object));
@@ -150,6 +150,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_
#ifdef ZEND_ENGINE_2
if (src->objects_count) {
+ zend_uint i;
for (i = 0; i < src->objects_count; ++i) {
zend_objects_store_del_ref_by_handle(processor.object_handles[i] TSRMLS_CC);
}