mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
Fix duplicate xmalloc in builtin-add
[jc: patch came without sign-off but it was too obvious and trivial.] Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
883653babd
commit
0b7c5a5450
@ -70,7 +70,6 @@ static void fill_directory(struct dir_struct *dir, const char **pathspec)
|
||||
base = "";
|
||||
if (baselen) {
|
||||
char *common = xmalloc(baselen + 1);
|
||||
common = xmalloc(baselen + 1);
|
||||
memcpy(common, *pathspec, baselen);
|
||||
common[baselen] = 0;
|
||||
path = base = common;
|
||||
|
Loading…
Reference in New Issue
Block a user