mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 09:36:47 +00:00
Cleanup
This commit is contained in:
parent
c0cef9e0d6
commit
d97669593a
@ -210,12 +210,12 @@ static int git_ssh_extract_url_parts(
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
start = url;
|
|
||||||
at = strchr(url, '@');
|
at = strchr(url, '@');
|
||||||
if (at) {
|
if (at) {
|
||||||
start = at+1;
|
start = at+1;
|
||||||
*username = git__substrdup(url, at - url);
|
*username = git__substrdup(url, at - url);
|
||||||
} else {
|
} else {
|
||||||
|
start = url;
|
||||||
*username = git__strdup(default_user);
|
*username = git__strdup(default_user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user