diff options
| author | Ben Fuhrmannek | 2021-10-21 18:55:48 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-10-21 18:55:48 +0200 |
| commit | 8e95c5d30f197716ba132e3f2494c5e220f3e5cd (patch) | |
| tree | 8770753fa8f5f94a468c995d904c5362af48f0de /src/sp_pcre_compat.c | |
| parent | 2ffe94c9366f96700ec5f747385ac07307a012a5 (diff) | |
added some array initialization, just in case.
Diffstat (limited to 'src/sp_pcre_compat.c')
| -rw-r--r-- | src/sp_pcre_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c index 657e650..e994123 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c | |||
| @@ -45,7 +45,7 @@ bool ZEND_HOT sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, | |||
| 45 | ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL); | 45 | ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL); |
| 46 | pcre2_match_data_free(match_data); | 46 | pcre2_match_data_free(match_data); |
| 47 | #else | 47 | #else |
| 48 | int vec[30]; | 48 | int vec[30] = {0}; |
| 49 | ret = pcre_exec(regexp, NULL, str, len, 0, 0, vec, sizeof(vec) / sizeof(int)); | 49 | ret = pcre_exec(regexp, NULL, str, len, 0, 0, vec, sizeof(vec) / sizeof(int)); |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
