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>
Richard Weinberger committed
Jan 15, 2010 at 00:28 UTC
b9cb07726a7a288244b585939850348f319e5e0c
1 file changed
+1
-1
transport.c
+1
-1
@@ -143,7 +143,7 @@ static const char *rsync_url(const char *url)
143
static struct ref *get_refs_via_rsync(struct transport *transport, int for_push)
144
{
145
struct strbuf buf = STRBUF_INIT, temp_dir = STRBUF_INIT;
146
- struct ref dummy, *tail = &dummy;
146
+ struct ref dummy = {0}, *tail = &dummy;
147
struct child_process rsync;
148
const char *args[5];
149
int temp_dir_len;