From: Jonas Fonseca Date: Fri, 20 Feb 2009 22:52:44 +0000 (+0100) Subject: Minor fix to always sort even if allocation fails in get_refs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a50b5b0f00be8b0edf509b4f7ea7550364a64a02;p=tig.git Minor fix to always sort even if allocation fails in get_refs --- 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