aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-07-23 11:19:22 +0200
committerJunio C Hamano <gitster@pobox.com>2013-07-23 11:33:03 -0700
commit4838c81fabc2bab7ff5cd95135060d9a580ad742 (patch)
tree975e22123124f0ebd25ba0317960580facb9fa9a /builtin
parentdb6a6adabfb57d8a4dcd0491a7b7e2168dac60c1 (diff)
downloadgit-4838c81fabc2bab7ff5cd95135060d9a580ad742.tar.gz
git-4838c81fabc2bab7ff5cd95135060d9a580ad742.tar.xz
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/rm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/rm.c b/builtin/rm.c
index f08561d5f..fe3faad15 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++) {