]> granicus.if.org Git - php/commitdiff
The length should be passed to the function,
authorMagnus M��tt� <magnus@php.net>
Fri, 1 Oct 2004 18:28:44 +0000 (18:28 +0000)
committerMagnus M��tt� <magnus@php.net>
Fri, 1 Oct 2004 18:28:44 +0000 (18:28 +0000)
so no need to check it inside the function too.
Will also fix a compile failure with gcc 3.4.

ext/standard/url.c

index 714690775ab2b901f177a4cc34e33dc3faadb1c8..370c600c0929a2c1070570834cf7b4252070fbd7 100644 (file)
@@ -95,7 +95,6 @@ PHPAPI php_url *php_url_parse(char const *str)
  */
 PHPAPI php_url *php_url_parse_ex(char const *str, int length)
 {
-       int length = strlen(str);
        char port_buf[6];
        php_url *ret = ecalloc(1, sizeof(php_url));
        char *s, *e, *p, *pp, *ue;