X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=diffcore-rename.c;h=9c1478c078b3c884ca3f7f5734d4b1c424dbc1fb;hb=b524e896b64f90086d913eebccaff3cd76f96dee;hp=41558185ae1d940cc74d348a00a00d5e641a5f4c;hpb=ada7c5fae5ba8c1fab4fc90131ae4058e0cb9271;p=thirdparty%2Fgit.git diff --git a/diffcore-rename.c b/diffcore-rename.c index 41558185ae..9c1478c078 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -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;