From f1f39d7ed7fb6f6aaa2edea165aae4bc58a09de7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 4 Sep 2018 05:32:25 +0200 Subject: [PATCH] Fix parenthesis warning --- ext/phar/phar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '.')) { -- 2.40.0