]> granicus.if.org Git - php/commitdiff
Fix uninitialized flag when JIT is disabled
authorAnatol Belski <ab@php.net>
Tue, 14 Nov 2017 09:12:33 +0000 (10:12 +0100)
committerAnatol Belski <ab@php.net>
Tue, 14 Nov 2017 09:12:55 +0000 (10:12 +0100)
ext/pcre/php_pcre.c

index 44b5ff55b03ebaf385c7fe50c1b8e2b57ff8696b..c71335fe263b97abfc0f679d4d39ff8032093e1d 100644 (file)
@@ -2537,7 +2537,7 @@ PHPAPI void  php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return
        int                             *offsets;                       /* Array of subpattern offsets */
        int                              size_offsets;          /* Size of the offsets array */
        int                              count = 0;                     /* Count of matched subpatterns */
-       int                              no_utf_check;          /* Execution options */
+       int                              no_utf_check = 0;              /* Execution options */
        zend_string             *string_key;
        zend_ulong               num_key;
        zend_bool                invert;                        /* Whether to return non-matching