Skip to content

Commit

Permalink
Fix uninitialized variable in get_refs_via_rsync().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Weinberger authored and Junio C Hamano committed Jan 16, 2010
1 parent 88d50e7 commit b9cb077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b9cb077

Please sign in to comment.