Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/submodule-helper-clone-regression-fix' into maint
[gitweb.git]
/
builtin
/
fast-export.c
diff --git
a/builtin/fast-export.c
b/builtin/fast-export.c
index 2471297f7101964c61c055b10e24a7aa4b65326a..8164b581a66f257c5b4a74abbf1b76546946e2cf 100644
(file)
--- a/
builtin/fast-export.c
+++ b/
builtin/fast-export.c
@@
-1021,7
+1021,7
@@
int cmd_fast_export(int argc, const char **argv, const char *prefix)
const char **refspecs_str;
int i;
-
refspecs_str = xmalloc(sizeof(*refspecs_str) *
refspecs_list.nr);
+
ALLOC_ARRAY(refspecs_str,
refspecs_list.nr);
for (i = 0; i < refspecs_list.nr; i++)
refspecs_str[i] = refspecs_list.items[i].string;