com php-src: Fix parenthesis warning: ext/phar/phar.c
| From: | Nikita Popov | Date: | Tue, 04 Sep 2018 03:32:25 +0000 |
| Subject: | com php-src: Fix parenthesis warning: ext/phar/phar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102980@lists.php.net to get a copy of this message | ||
Commit: f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7
Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 4 Sep 2018 05:32:25 +0200
Parents: 870d893d0bd3f4055ec1d61058aafdadf666b117
Branches: PHP-7.1 PHP-7.2 PHP-7.3 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7
Log:
Fix parenthesis warning
Changed paths:
M ext/phar/phar.c
Diff:
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index e053b6d..414acc7 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1843,7 +1843,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len,
i
pos = strstr(ext_str, ".phar");
if (!pos
- || pos != ext_str && (*(pos - 1) == '/')
+ || (pos != ext_str && (*(pos - 1) == '/'))
|| (ext_len - (pos - ext_str)) < 5
|| !(pos += 5)
|| !(*pos == '\0' || *pos == '/' || *pos == '.')) {