Code

Minor fix to always sort even if allocation fails in get_refs
authorJonas Fonseca <fonseca@diku.dk>
Fri, 20 Feb 2009 22:52:44 +0000 (23:52 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 20 Feb 2009 23:16:39 +0000 (00:16 +0100)
tig.c

diff --git a/tig.c b/tig.c
index 27342bc2b4403ebd36ad27aee3963a1c8a10aed0..81a97b6942c6c17b2418b4fd26bc881f71c18bad 100644 (file)
--- 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