Skip to content

Commit 4838c81

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent db6a6ad commit 4838c81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin/rm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
316316
parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD, prefix, argv);
317317
refresh_index(&the_index, REFRESH_QUIET, &pathspec, NULL, NULL);
318318

319-
seen = NULL;
320319
seen = xcalloc(pathspec.nr, 1);
321320

322321
for (i = 0; i < active_nr; i++) {

0 commit comments

Comments
 (0)