diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-10-21 01:33:31 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-10-21 01:33:31 +0000 |
commit | 890aee56d1b0a77e02d29fe694cc251e02458425 (patch) | |
tree | 8521f5b17d829c27ac8c92c02e9a9d5818f46a9a /main | |
parent | 2a81281fd23cfe8025d9e52d7b981440d5e7ed00 (diff) | |
download | php-git-890aee56d1b0a77e02d29fe694cc251e02458425.tar.gz |
MFH
Diffstat (limited to 'main')
-rwxr-xr-x | main/streams.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams.c b/main/streams.c index e7e576f155..cab4e2f001 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1521,9 +1521,9 @@ PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char if (*filename == '.' && (*(filename+1) == '/' || *(filename+1) == '.')) { /* further checks, we could have ....... filenames */ ptr = filename + 1; - if (ptr == '.') { + if (*ptr == '.') { while (*(++ptr) == '.'); - if (ptr != '/') { /* not a relative path after all */ + if (*ptr != '/') { /* not a relative path after all */ goto not_relative_path; } } |