Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: ssh-pull.o depends on ssh-fetch.c
[gitweb.git]
/
builtin-rm.c
diff --git
a/builtin-rm.c
b/builtin-rm.c
index 5deb81171996029b31da14109c408ffba33f7957..bb810ba41ae23c9dc4c38fbb0fa7883a33d43524 100644
(file)
--- a/
builtin-rm.c
+++ b/
builtin-rm.c
@@
-90,8
+90,7
@@
int cmd_rm(int argc, const char **argv, char **envp)
seen = NULL;
for (i = 0; pathspec[i] ; i++)
/* nothing */;
- seen = xmalloc(i);
- memset(seen, 0, i);
+ seen = xcalloc(i, 1);
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];