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>
Stefan Beller committed
Jul 23, 2013 at 11:19 UTC
4838c81fabc2bab7ff5cd95135060d9a580ad742
1 file changed
-1
builtin/rm.c
-1
@@ -316,7 +316,6 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
316
parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD, prefix, argv);
317
refresh_index(&the_index, REFRESH_QUIET, &pathspec, NULL, NULL);
318
319
- seen = NULL;
319
seen = xcalloc(pathspec.nr, 1);
320
321
for (i = 0; i < active_nr; i++) {