From 637a9710a1cb61b3f7c553e7646fac9fc7ec3134 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20M=EF=BF=BD=EF=BF=BDtt=EF=BF=BD?= Date: Fri, 1 Oct 2004 18:28:44 +0000 Subject: [PATCH] The length should be passed to the function, so no need to check it inside the function too. Will also fix a compile failure with gcc 3.4. --- ext/standard/url.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/standard/url.c b/ext/standard/url.c index 714690775a..370c600c09 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -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; -- 2.50.1