diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 871dbeea7b1..4571da56862 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -428,7 +428,7 @@ static void php_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) subpat_names = (char **)safe_emalloc(num_subpats, sizeof(char *), 0); memset(subpat_names, 0, sizeof(char *) * num_subpats); { - int name_cnt, name_size, ni = 0; + int name_cnt = 0, name_size, ni = 0; char *name_table; unsigned short name_idx;