From a0300b15a3afffe02c737d263c3d6dd31ac307b7 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Tue, 28 Aug 2018 18:16:11 +0200 Subject: Fix some compilation warnings --- src/sp_sloppy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sp_sloppy.c') diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c index e7396fd..5b36026 100644 --- a/src/sp_sloppy.c +++ b/src/sp_sloppy.c @@ -41,10 +41,11 @@ static void array_handler(INTERNAL_FUNCTION_PARAMETERS, void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS)) { void (*handler)(INTERNAL_FUNCTION_PARAMETERS); zval func_name; - zval params[3] = {{{0}}}; + zval params[3]; zval *value, *array; zend_bool strict; + memset(¶ms, 0, sizeof(params)); zend_parse_parameters(ZEND_NUM_ARGS(), "zz|b", &value, &array, &strict); ZVAL_COPY(¶ms[0], value); -- cgit v1.3