Thread (10 messages) flat view 10 messages, 5 authors, 2016-06-15
STALE3711d

[PATCH] Fixed crash in fetching remote tags when there is not tags.

From: Väinö Järvelä <hidden>
Date: 2016-06-15 22:43:40
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Väinö Järvelä <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help