OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'er/fast-import-dump-refs-on-checkpoint' into maint
[git-core/git.git]
/
run-command.c
diff --git
a/run-command.c
b/run-command.c
index
b5e6eb3
..
014b216
100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-452,7
+452,7
@@
static char **prep_childenv(const char *const *deltaenv)
}
/* Create an array of 'char *' to be used as the childenv */
-
childenv = xmalloc((env.nr + 1) * sizeof(char *)
);
+
ALLOC_ARRAY(childenv, env.nr + 1
);
for (i = 0; i < env.nr; i++)
childenv[i] = env.items[i].util;
childenv[env.nr] = NULL;