From: Andreas Gruenbacher Date: Fri, 12 Mar 2010 22:27:33 GMT Subject: [PATCH 2/9] fetch: Properly initialize refspec on stack Message-ID: In-Reply-To: Signed-off-by: Andreas Gruenbacher --- builtin/fetch.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/builtin/fetch.c b/builtin/fetch.c index 77031e2..660af84 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -107,10 +107,8 @@ static void add_merge_config(struct ref **head, * there is no entry in the resulting FETCH_HEAD marked * for merging. */ + memset(&refspec, 0, sizeof(refspec)); refspec.src = branch->merge[i]->src; - refspec.dst = NULL; - refspec.pattern = 0; - refspec.force = 0; get_fetch_map(remote_refs, &refspec, tail, 1); for (rm = *old_tail; rm; rm = rm->next) rm->merge = 1; -- 1.7.0.2.273.gc2413