/
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]
/
builtin
/
clean.c
diff --git
a/builtin/clean.c
b/builtin/clean.c
index
919157b
..
1f02c82
100644
(file)
--- a/
builtin/clean.c
+++ b/
builtin/clean.c
@@
-543,7
+543,7
@@
static int *list_and_choose(struct menu_opts *opts, struct menu_stuff *stuff)
int eof = 0;
int i;
-
chosen = xmalloc(sizeof(int) *
stuff->nr);
+
ALLOC_ARRAY(chosen,
stuff->nr);
/* set chosen as uninitialized */
for (i = 0; i < stuff->nr; i++)
chosen[i] = -1;