From 49ac5ac8fc4b775a27e688e6fdfcbd36e5365891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sun, 6 May 2012 13:17:25 +0200 Subject: [PATCH] transport git: don't use 'error' uninitialized --- src/transports/git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transports/git.c b/src/transports/git.c index 9eae9a1a2..9a1741941 100644 --- a/src/transports/git.c +++ b/src/transports/git.c @@ -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); }