From 81eb8e7507bdec00a6dde4ac759d668d048b6f13 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 11 Jul 2018 18:05:10 +0200 Subject: Mark conditions unexpected --- ext/pcre/php_pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 7555428f42..f4c6ab1ac7 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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)); -- cgit v1.2.1