]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bisect.c
Merge branch 'cm/rebase-i-updates'
[thirdparty/git.git] / bisect.c
index ae48d19acf6c70b97790edca0aca36d63d87f0da..af2863d044b704f3b7e9d6617dbb2226d4c8a1fe 100644 (file)
--- a/bisect.c
+++ b/bisect.c
@@ -423,7 +423,7 @@ void find_bisection(struct commit_list **commit_list, int *reaches,
        show_list("bisection 2 sorted", 0, nr, list);
 
        *all = nr;
-       weights = xcalloc(on_list, sizeof(*weights));
+       CALLOC_ARRAY(weights, on_list);
 
        /* Do the real work of finding bisection commit. */
        best = do_find_bisection(list, nr, weights, bisect_flags);