mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 20:42:32 +00:00
transport git: don't use 'error' uninitialized
This commit is contained in:
parent
3972ca43d8
commit
49ac5ac8fc
@ -112,7 +112,7 @@ static int do_connect(transport_git *t, const char *url)
|
|||||||
if (gitno_extract_host_and_port(&host, &port, url, GIT_DEFAULT_PORT) < 0)
|
if (gitno_extract_host_and_port(&host, &port, url, GIT_DEFAULT_PORT) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (gitno_connect(&t->socket, host, port) == 0) {
|
if ((error = gitno_connect(&t->socket, host, port)) == 0) {
|
||||||
error = send_request(t->socket, NULL, url);
|
error = send_request(t->socket, NULL, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user