summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/netops.c b/src/netops.c
index 6777ee51b..c1e74546f 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -581,17 +581,13 @@ int gitno_extract_url_parts(
const char *url,
const char *default_port)
{
- char *colon, *dblslash, *slash, *at, *end;
+ char *colon, *slash, *at, *end;
const char *start;
/*
- *
* ==> [user[:pass]@]hostname.tld[:port]/resource
*/
- dblslash = strstr(url, "://");
- if (dblslash) url = dblslash+3;
-
colon = strchr(url, ':');
slash = strchr(url, '/');
at = strchr(url, '@');