Skip to content

Commit 81eb8e7

Browse files
committed
Mark conditions unexpected
1 parent 85ee47e commit 81eb8e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pcre/php_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ static PHP_MINIT_FUNCTION(pcre)
388388
char *version;
389389

390390
#ifdef HAVE_PCRE_JIT_SUPPORT
391-
if (!pcre2_init_ok) {
391+
if (UNEXPECTED(!pcre2_init_ok)) {
392392
/* Retry. */
393393
php_pcre_init_pcre2(PCRE_G(jit));
394394
if (!pcre2_init_ok) {
@@ -444,7 +444,7 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
444444
/* {{{ PHP_RINIT_FUNCTION(pcre) */
445445
static PHP_RINIT_FUNCTION(pcre)
446446
{
447-
if (!pcre2_init_ok) {
447+
if (UNEXPECTED(!pcre2_init_ok)) {
448448
/* Retry. */
449449
php_pcre_mutex_lock();
450450
php_pcre_init_pcre2(PCRE_G(jit));

0 commit comments

Comments
 (0)