1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00

(php_check_dots) we don't need len

This commit is contained in:
Sascha Schumann
2000-03-16 18:37:34 +00:00
parent 3cb7cf43de
commit 1ed113d925
+1 -3
View 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);