Skip to content

Commit e575ab5

Browse files
committed
Remove redundant check
There's no point in checking the length, this just wastes time.
1 parent edf9c4d commit e575ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/phar/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const
6363
char *arch = NULL, *entry = NULL, *error;
6464
size_t arch_len, entry_len;
6565

66-
if (strlen(filename) < 7 || strncasecmp(filename, "phar://", 7)) {
66+
if (strncasecmp(filename, "phar://", 7)) {
6767
return NULL;
6868
}
6969
if (mode[0] == 'a') {

0 commit comments

Comments
 (0)