use xmalloc in git.c and help.c
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
3a81b9f571
commit
3301521a25
2
git.c
2
git.c
@ -99,7 +99,7 @@ static int split_cmdline(char *cmdline, const char ***argv)
|
||||
int src, dst, count = 0, size = 16;
|
||||
char quoted = 0;
|
||||
|
||||
*argv = malloc(sizeof(char*) * size);
|
||||
*argv = xmalloc(sizeof(char*) * size);
|
||||
|
||||
/* split alias_string */
|
||||
(*argv)[count++] = cmdline;
|
||||
|
Loading…
Reference in New Issue
Block a user