Commit d9766959 by Brad Morgan

Cleanup

parent c0cef9e0
......@@ -210,12 +210,12 @@ static int git_ssh_extract_url_parts(
return -1;
}
start = url;
at = strchr(url, '@');
if (at) {
start = at+1;
*username = git__substrdup(url, at - url);
} else {
start = url;
*username = git__strdup(default_user);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment