diff options
author | Liu Yubao <yubao.liu@gmail.com> | 2006-09-15 13:46:07 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-17 21:40:03 -0700 |
commit | 0b7c5a5450951dfed9017ff4dec5682219228639 (patch) | |
tree | 6949b982185e31da2f15ed9e1a773c8a43d34b16 | |
parent | 883653babd8ee7ea23e6a5c392bb739348b1eb61 (diff) | |
download | git-0b7c5a5450951dfed9017ff4dec5682219228639.tar.gz git-0b7c5a5450951dfed9017ff4dec5682219228639.tar.xz |
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>
-rw-r--r-- | builtin-add.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin-add.c b/builtin-add.c index 0cb9c8120..febb75ed9 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -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; |