com php-src: Fix uninitialized flag when JIT is disabled: ext/pcre/php_pcre.c
| From: | Anatol Belski | Date: | Tue, 14 Nov 2017 09:12:55 +0000 |
| Subject: | com php-src: Fix uninitialized flag when JIT is disabled: ext/pcre/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100223@lists.php.net to get a copy of this message | ||
Commit: 3c241ea3262250262c63b92176e2eec2435cc6bb
Author: Anatol Belski <ab@php.net> Tue, 14 Nov 2017 10:12:33 +0100
Parents: 0a45e8f096a04464bda6277c6f3d0b5461737a27
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3c241ea3262250262c63b92176e2eec2435cc6bb
Log:
Fix uninitialized flag when JIT is disabled
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 44b5ff5..c71335f 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -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