Skip to content

Commit fb0d3ee

Browse files
committed
SQUASH??? unbreak coccicheck
1 parent 15cfd29 commit fb0d3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/last-modified.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static int last_modified_init(struct last_modified *lm, struct repository *r,
493493
if (populate_paths_from_revs(lm) < 0)
494494
return error(_("unable to setup last-modified"));
495495

496-
lm->all_paths = xcalloc(hashmap_get_size(&lm->paths), sizeof(const char *));
496+
CALLOC_ARRAY(lm->all_paths, hashmap_get_size(&lm->paths));
497497
lm->all_paths_nr = 0;
498498
hashmap_for_each_entry(&lm->paths, &iter, ent, hashent) {
499499
ent->diff_idx = lm->all_paths_nr++;

0 commit comments

Comments
 (0)