From a50b5b0f00be8b0edf509b4f7ea7550364a64a02 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 20 Feb 2009 23:52:44 +0100 Subject: [PATCH] Minor fix to always sort even if allocation fails in get_refs --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 27342bc..81a97b6 100644 --- a/tig.c +++ b/tig.c @@ -6725,7 +6725,7 @@ get_refs(const char *id) continue; if (!realloc_refs_list(&ref_list, ref_list_size, 1)) - return ref_list; + break; ref_list[ref_list_size] = &refs[i]; /* XXX: The properties of the commit chains ensures that we can -- 2.30.2