Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: map a P4 user to Git author name and email address
[gitweb.git]
/
builtin
/
clean.c
diff --git
a/builtin/clean.c
b/builtin/clean.c
index 1f02c8294cb682196691942b569e35fc659d4138..fb1824ce951b62e51fb7205424e1496c50c700c6 100644
(file)
--- a/
builtin/clean.c
+++ b/
builtin/clean.c
@@
-615,7
+615,7
@@
static int *list_and_choose(struct menu_opts *opts, struct menu_stuff *stuff)
nr += chosen[i];
}
- result = xcalloc(
nr + 1
, sizeof(int));
+ result = xcalloc(
st_add(nr, 1)
, sizeof(int));
for (i = 0; i < stuff->nr && j < nr; i++) {
if (chosen[i])
result[j++] = i;