Signed-off-by: Väinö Järvelä <v@xxxxxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html