diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-06 13:17:25 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-06 13:17:39 +0200 |
| commit | 49ac5ac8fc4b775a27e688e6fdfcbd36e5365891 (patch) | |
| tree | 87feef3dd33393a9554eaedf850c5e5067963042 /src | |
| parent | 3972ca43d8bc64247159c118ea8b261b5efaf35d (diff) | |
| download | libgit2-49ac5ac8fc4b775a27e688e6fdfcbd36e5365891.tar.gz | |
transport git: don't use 'error' uninitialized
Diffstat (limited to 'src')
| -rw-r--r-- | src/transports/git.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
