]> granicus.if.org Git - php/commitdiff
Quell GCC warning on mixing || and &&
authorLevi Morrison <levim@php.net>
Sat, 11 Aug 2018 22:54:21 +0000 (16:54 -0600)
committerLevi Morrison <levim@php.net>
Sat, 11 Aug 2018 22:54:21 +0000 (16:54 -0600)
ext/phar/phar.c

index fd716b6038d1876bd0c6e127c79b608912ecf38c..b3be34d84e32f9fb94504a3ac44f576bebf6455d 100644 (file)
@@ -1861,7 +1861,7 @@ static int phar_check_str(const char *fname, const char *ext_str, size_t ext_len
                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 == '.')) {