From b9cb07726a7a288244b585939850348f319e5e0c Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Fri, 15 Jan 2010 00:28:59 +0100 Subject: Fix uninitialized variable in get_refs_via_rsync(). This fixes a crash when cloning via rsync://. Signed-off-by: Richard Weinberger Signed-off-by: Junio C Hamano diff --git a/transport.c b/transport.c index 7362ec0..42b2c59 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; -- cgit v0.10.2-6-g49f6