]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-rename.c
Sync with 2.30.9
[thirdparty/git.git] / diffcore-rename.c
index 41558185ae1d940cc74d348a00a00d5e641a5f4c..9c1478c078b3c884ca3f7f5734d4b1c424dbc1fb 100644 (file)
@@ -787,8 +787,7 @@ void diffcore_rename(struct diff_options *options)
                                (uint64_t)num_destinations * (uint64_t)num_sources);
        }
 
-       mx = xcalloc(st_mult(NUM_CANDIDATE_PER_DST, num_destinations),
-                    sizeof(*mx));
+       CALLOC_ARRAY(mx, st_mult(NUM_CANDIDATE_PER_DST, num_destinations));
        for (dst_cnt = i = 0; i < rename_dst_nr; i++) {
                struct diff_filespec *two = rename_dst[i].p->two;
                struct diff_score *m;