Skip to content

Commit 890aee5

Browse files
author
Moriyoshi Koizumi
committed
MFH
1 parent 2a81281 commit 890aee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/streams.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,9 +1521,9 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char
15211521
if (*filename == '.' && (*(filename+1) == '/' || *(filename+1) == '.')) {
15221522
/* further checks, we could have ....... filenames */
15231523
ptr = filename + 1;
1524-
if (ptr == '.') {
1524+
if (*ptr == '.') {
15251525
while (*(++ptr) == '.');
1526-
if (ptr != '/') { /* not a relative path after all */
1526+
if (*ptr != '/') { /* not a relative path after all */
15271527
goto not_relative_path;
15281528
}
15291529
}

0 commit comments

Comments
 (0)