mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Test for repo before removing leading colon
This commit is contained in:
parent
fbabe855ad
commit
b345026baa
@ -51,7 +51,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
|
|||||||
repo = strchr(url, '/');
|
repo = strchr(url, '/');
|
||||||
} else {
|
} else {
|
||||||
repo = strchr(url, ':');
|
repo = strchr(url, ':');
|
||||||
repo++;
|
if (repo) repo++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!repo) {
|
if (!repo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user