diff options
| author | xXx-caillou-xXx | 2018-08-28 18:16:11 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-28 16:16:11 +0000 |
| commit | a0300b15a3afffe02c737d263c3d6dd31ac307b7 (patch) | |
| tree | 0f03abc2ae41653c61de2e34a93292b15a200046 /src/sp_sloppy.c | |
| parent | 888242c30d822392953e1b5f4fc289a96e9da5e0 (diff) | |
Fix some compilation warnings
Diffstat (limited to 'src/sp_sloppy.c')
| -rw-r--r-- | src/sp_sloppy.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
| 41 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS)) { | 41 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS)) { |
| 42 | void (*handler)(INTERNAL_FUNCTION_PARAMETERS); | 42 | void (*handler)(INTERNAL_FUNCTION_PARAMETERS); |
| 43 | zval func_name; | 43 | zval func_name; |
| 44 | zval params[3] = {{{0}}}; | 44 | zval params[3]; |
| 45 | zval *value, *array; | 45 | zval *value, *array; |
| 46 | zend_bool strict; | 46 | zend_bool strict; |
| 47 | 47 | ||
| 48 | memset(¶ms, 0, sizeof(params)); | ||
| 48 | zend_parse_parameters(ZEND_NUM_ARGS(), "zz|b", &value, &array, &strict); | 49 | zend_parse_parameters(ZEND_NUM_ARGS(), "zz|b", &value, &array, &strict); |
| 49 | 50 | ||
| 50 | ZVAL_COPY(¶ms[0], value); | 51 | ZVAL_COPY(¶ms[0], value); |
