diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-09-04 05:32:25 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-09-04 05:32:25 +0200 |
commit | f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7 (patch) | |
tree | dcf4178cb1fc35bc09f1d6f00dfb7c3035a2880e | |
parent | 870d893d0bd3f4055ec1d61058aafdadf666b117 (diff) | |
download | php-git-f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7.tar.gz |
Fix parenthesis warning
-rw-r--r-- | ext/phar/phar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c index e053b6dd66..414acc78f7 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 == '.')) { |