Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
lost-found: use fsck-objects --full
[gitweb.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index 2d256981733345f4a430e11812b6851f0351aabd..3a73a173f729e0ca75e650779773316e8ae3fe98 100644
(file)
--- a/
builtin-add.c
+++ b/
builtin-add.c
@@
-21,8
+21,7
@@
static void prune_directory(struct dir_struct *dir, const char **pathspec, int p
for (specs = 0; pathspec[specs]; specs++)
/* nothing */;
- seen = xmalloc(specs);
- memset(seen, 0, specs);
+ seen = xcalloc(specs, 1);
src = dst = dir->entries;
i = dir->nr;