diff options
| author | Sascha Schumann <sas@php.net> | 2000-03-16 18:37:34 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-03-16 18:37:34 +0000 |
| commit | 1ed113d9258609256b2459e732c4c6300e794d64 (patch) | |
| tree | 1275b3c467314a26f29602799944dc9d9bdbde82 | |
| parent | 3cb7cf43defe7e063e951b437d7427337b461eca (diff) | |
| download | php-git-1ed113d9258609256b2459e732c4c6300e794d64.tar.gz | |
(php_check_dots) we don't need len
| -rw-r--r-- | main/php_virtual_cwd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/php_virtual_cwd.c b/main/php_virtual_cwd.c index 3e7b99c2b3..1643d02cc4 100644 --- a/main/php_virtual_cwd.c +++ b/main/php_virtual_cwd.c @@ -18,10 +18,8 @@ typedef unsigned int uint; #define IS_ABSOLUTE_PATH(path, len) \ (len >= 2 && isalpha(path[0]) && path[1] == ':') -static int php_check_dots(char *element, uint len) +static int php_check_dots(const char *element, uint n) { - uint n = len; - while (n-- > 0) if (element[n] != '.') break; return (n != -1); |
