From: Anatol Belski Date: Fri, 19 Sep 2014 13:04:06 +0000 (+0200) Subject: simplify condition X-Git-Tag: POST_NATIVE_TLS_MERGE^2~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=469c9bdb392ab0d8c91d7e2ab5ff93c650489143;p=php simplify condition --- diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 62b3e962f6..36147e972c 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -717,7 +717,7 @@ static void _php_mb_regex_ereg_exec(INTERNAL_FUNCTION_PARAMETERS, int icase) /* don't bother doing an extended regex with just a number */ } - if (!Z_STRVAL_P(arg_pattern)[0] || Z_STRLEN_P(arg_pattern) == 0) { + if (Z_STRLEN_P(arg_pattern) == 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "empty pattern"); RETVAL_FALSE; goto out;