summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2018-10-18 11:46:04 -0700
committerJunio C Hamano <gitster@pobox.com>2018-10-19 11:16:52 +0900
commit07f967adb55fd2285f9c916b32731968e557acc3 (patch)
tree40824befe9f3817e8f6c4f8dc860bd877f0a9fac /unpack-trees.c
parenta4b8ab5363a32f283a61ef3a962853556d136c0e (diff)
downloadgit-07f967adb55fd2285f9c916b32731968e557acc3.tar.gz
unpack-trees: avoid dead store for struct progress
it is unconditionally initialized a few lines below Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 51bfac6aa0..7570df481b 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -380,7 +380,7 @@ static int check_updates(struct unpack_trees_options *o)
{
unsigned cnt = 0;
int errs = 0;
- struct progress *progress = NULL;
+ struct progress *progress;
struct index_state *index = &o->result;
struct checkout state = CHECKOUT_INIT;
int i;