summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2010-01-15 00:28:59 +0100
committerJunio C Hamano <gitster@pobox.com>2010-01-15 21:20:28 -0800
commitb9cb07726a7a288244b585939850348f319e5e0c (patch)
treecefb94ff5b139f8cb2066ff5f118f94962b87a29 /transport.c
parent88d50e78c339abd96270d2aad3c91dabbc7a8b1a (diff)
downloadgit-b9cb07726a7a288244b585939850348f319e5e0c.tar.gz
Fix uninitialized variable in get_refs_via_rsync().
This fixes a crash when cloning via rsync://. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 7362ec09b2..42b2c59a7b 100644
--- a/transport.c
+++ b/transport.c
@@ -143,7 +143,7 @@ static const char *rsync_url(const char *url)
static struct ref *get_refs_via_rsync(struct transport *transport, int for_push)
{
struct strbuf buf = STRBUF_INIT, temp_dir = STRBUF_INIT;
- struct ref dummy, *tail = &dummy;
+ struct ref dummy = {0}, *tail = &dummy;
struct child_process rsync;
const char *args[5];
int temp_dir_len;