From e27a43b7be877b9b27addf67f7dc2d1f6d74d3a1 Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Thu, 28 Apr 2016 15:40:28 +0100 Subject: [PATCH] variable used out of scope --- ext/spl/spl_fixedarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index 9bbda05829..e04abf77ea 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -410,11 +410,11 @@ static inline void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_o static void spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value) /* {{{ */ { spl_fixedarray_object *intern; + zval tmp; intern = Z_SPLFIXEDARRAY_P(object); if (intern->fptr_offset_set) { - zval tmp; if (!offset) { ZVAL_NULL(&tmp); offset = &tmp; -- 2.40.0