com php-src: Fix wrong return: ext/pcre/php_pcre.c
| From: | Anatol Belski | Date: | Tue, 14 Nov 2017 20:44:46 +0000 |
| Subject: | com php-src: Fix wrong return: ext/pcre/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100242@lists.php.net to get a copy of this message | ||
Commit: 91407fb82d0eb4425864bb1c30e2def05ee3ea49
Author: Anatol Belski <ab@php.net> Tue, 14 Nov 2017 21:44:46 +0100
Parents: a57f370e590367a149b39e5908a2c84228547b00
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=91407fb82d0eb4425864bb1c30e2def05ee3ea49
Log:
Fix wrong return
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index b7527ae..b852a5f 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -196,8 +196,8 @@ static void php_pcre_init_pcre2(uint8_t jit)
mdata = pcre2_match_data_create(PHP_PCRE_PREALLOC_MDATA_SIZE, gctx);
if (!mdata) {
pcre2_init_ok = 0;
+ return;
}
- return;
}
pcre2_init_ok = 1;