提交 b9cb0772 编写于 作者: R Richard Weinberger 提交者: Junio C Hamano

Fix uninitialized variable in get_refs_via_rsync().

This fixes a crash when cloning via rsync://.
Signed-off-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 88d50e78
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册