From: Väinö Järvelä Date: Tue, 09 Oct 2007 08:51:08 GMT Subject: [PATCH] Fixed crash in fetching remote tags when there is not tags. Message-ID: <1191919868-4963-2-git-send-email-v@pp.inet.fi> In-Reply-To: <1191919868-4963-1-git-send-email-v@pp.inet.fi> Signed-off-by: Väinö Järvelä --- remote.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/remote.c b/remote.c index e7d735b..5e92378 100644 --- a/remote.c +++ b/remote.c @@ -537,6 +537,8 @@ static int count_refspec_match(const char *pattern, static void tail_link_ref(struct ref *ref, struct ref ***tail) { + if (!ref) return; + **tail = ref; while (ref->next) ref = ref->next; -- 1.5.3.4.1156.g5407-dirty