/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert trivial cases to ALLOC_ARRAY
[git/git.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
40388d7
..
31cd91f
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-903,7
+903,7
@@
static int remove_redundant(struct commit **array, int cnt)
work = xcalloc(cnt, sizeof(*work));
redundant = xcalloc(cnt, 1);
-
filled_index = xmalloc(sizeof(*filled_index) * (cnt - 1)
);
+
ALLOC_ARRAY(filled_index, cnt - 1
);
for (i = 0; i < cnt; i++)
parse_commit(array[i]);