My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6a6ad
)
rm: do not set a variable twice without intermediate reading.
author
Stefan Beller
<stefanbeller@googlemail.com>
Tue, 23 Jul 2013 09:19:22 +0000
(11:19 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 23 Jul 2013 18:33:03 +0000
(11:33 -0700)
Just the next line assigns a non-null value to seen.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rm.c
patch
|
blob
|
history
diff --git
a/builtin/rm.c
b/builtin/rm.c
index
f08561d
..
fe3faad
100644
(file)
--- a/
builtin/rm.c
+++ b/
builtin/rm.c
@@
-316,7
+316,6
@@
int cmd_rm(int argc, const char **argv, const char *prefix)
parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD, prefix, argv);
refresh_index(&the_index, REFRESH_QUIET, &pathspec, NULL, NULL);
- seen = NULL;
seen = xcalloc(pathspec.nr, 1);
for (i = 0; i < active_nr; i++) {