]> granicus.if.org Git - php/commitdiff
(php_check_dots) we don't need len
authorSascha Schumann <sas@php.net>
Thu, 16 Mar 2000 18:37:34 +0000 (18:37 +0000)
committerSascha Schumann <sas@php.net>
Thu, 16 Mar 2000 18:37:34 +0000 (18:37 +0000)
main/php_virtual_cwd.c

index 3e7b99c2b3e4342f21210b5134ce911face35a2b..1643d02cc46e5c2100ce2d434aae66ffa026109f 100644 (file)
@@ -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);