Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-07-23 13:19:22 +0400
committerJunio C Hamano <gitster@pobox.com>2013-07-23 22:33:03 +0400
commit4838c81fabc2bab7ff5cd95135060d9a580ad742 (patch)
tree975e22123124f0ebd25ba0317960580facb9fa9a /builtin/rm.c
parentdb6a6adabfb57d8a4dcd0491a7b7e2168dac60c1 (diff)
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/rm.c')
-rw-r--r--builtin/rm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/rm.c b/builtin/rm.c
index f08561d5fa..fe3faad158 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++) {