Skip to content

Commit

Permalink
Quell GCC warning on mixing || and &&
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi committed Aug 11, 2018
1 parent b151e17 commit 29b56a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/phar/phar.c
Expand Up @@ -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 == '.')) {
Expand Down

0 comments on commit 29b56a8

Please sign in to comment.