зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
db6a6adabf
Коммит
4838c81fab
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче