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>
This commit is contained in:
parent
88d50e78c3
commit
b9cb07726a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user