From: Sascha Schumann Date: Thu, 16 Mar 2000 18:37:34 +0000 (+0000) Subject: (php_check_dots) we don't need len X-Git-Tag: PHP-4.0-RC1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ed113d9258609256b2459e732c4c6300e794d64;p=php (php_check_dots) we don't need len --- 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);