Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-reset to remove "$GIT_DIR/MERGE_MSG"
[gitweb.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index 0cb9c812006ba4826122b57b9732e895b0eed905..febb75ed994b5edc51afc60e2d46483fa9e273f2 100644
(file)
--- 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;