1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 04:21:18 +02:00

Mark conditions unexpected

This commit is contained in:
Anatol Belski
2018-07-11 18:05:10 +02:00
parent 85ee47eda0
commit 81eb8e7507

View File

@@ -388,7 +388,7 @@ static PHP_MINIT_FUNCTION(pcre)
char *version;
#ifdef HAVE_PCRE_JIT_SUPPORT
if (!pcre2_init_ok) {
if (UNEXPECTED(!pcre2_init_ok)) {
/* Retry. */
php_pcre_init_pcre2(PCRE_G(jit));
if (!pcre2_init_ok) {
@@ -444,7 +444,7 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
/* {{{ PHP_RINIT_FUNCTION(pcre) */
static PHP_RINIT_FUNCTION(pcre)
{
if (!pcre2_init_ok) {
if (UNEXPECTED(!pcre2_init_ok)) {
/* Retry. */
php_pcre_mutex_lock();
php_pcre_init_pcre2(PCRE_G(jit));