summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-07-23 09:19:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-23 18:33:03 (GMT)
commit4838c81fabc2bab7ff5cd95135060d9a580ad742 (patch)
tree975e22123124f0ebd25ba0317960580facb9fa9a
parentdb6a6adabfb57d8a4dcd0491a7b7e2168dac60c1 (diff)
downloadgit-4838c81fabc2bab7ff5cd95135060d9a580ad742.zip
git-4838c81fabc2bab7ff5cd95135060d9a580ad742.tar.gz
git-4838c81fabc2bab7ff5cd95135060d9a580ad742.tar.bz2
rm: do not set a variable twice without intermediate reading.
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>
-rw-r--r--builtin/rm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/rm.c b/builtin/rm.c
index f08561d..fe3faad 100644
--- 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++) {