From: Stefan Beller Date: Tue, 23 Jul 2013 09:19:22 +0000 (+0200) Subject: rm: do not set a variable twice without intermediate reading. X-Git-Tag: v1.8.5-rc0~158^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4838c81fabc2bab7ff5cd95135060d9a580ad742?hp=--cc 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 Signed-off-by: Junio C Hamano --- 4838c81fabc2bab7ff5cd95135060d9a580ad742 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++) {