com php-src: Simplified condition: ext/pcre/php_pcre.c

From: Date: Fri, 29 Apr 2016 09:33:54 +0000
Subject: com php-src: Simplified condition: ext/pcre/php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91944@lists.php.net to get a copy of this message
Commit: 37f7c71f3e23d735cd3b75a0e2e05b6de95d3ad5 Author: Dmitry Stogov <dmitry@zend.com> Fri, 29 Apr 2016 12:33:54 +0300 Parents: ddac2852dc577c1f244bcdf1c665aacdff48637e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=37f7c71f3e23d735cd3b75a0e2e05b6de95d3ad5 Log: Simplified condition Changed paths: M ext/pcre/php_pcre.c Diff: diff --git a/ext/pcre/php_pcre..c b/ext/pcre/php_pcre.c index f6f8630..35ba1a0 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1030,7 +1030,7 @@ static int preg_get_backref(char **str, int *backref) } if (in_brace) { - if (*walk == 0 || *walk != '}') + if (*walk != '}') return 0; else walk++;

« previous php.cvs (#91944) next »