transport git: don't use 'error' uninitialized

This commit is contained in:
Carlos Martín Nieto 2012-05-06 13:17:25 +02:00
parent 3972ca43d8
commit 49ac5ac8fc

View File

@ -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)
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);
}