* [PATCH 1/2] Fix uninitialized variable in get_refs_via_rsync().
@ 2010-01-14 23:28 Richard Weinberger
0 siblings, 0 replies; only message in thread
From: Richard Weinberger @ 2010-01-14 23:28 UTC (permalink / raw)
To: git; +Cc: gitster
This fixes a crash when cloning via rsync://.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
transport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/transport.c b/transport.c
index b5332c0..3b489b3 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;
--
1.6.5.7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-14 23:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 23:28 [PATCH 1/2] Fix uninitialized variable in get_refs_via_rsync() Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox