Commit 49ac5ac8 by Carlos Martín Nieto

transport git: don't use 'error' uninitialized

parent 3972ca43
...@@ -112,7 +112,7 @@ static int do_connect(transport_git *t, const char *url) ...@@ -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);
} }
......
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