diff options
author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2018-10-18 11:46:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-19 11:16:52 +0900 |
commit | 07f967adb55fd2285f9c916b32731968e557acc3 (patch) | |
tree | 40824befe9f3817e8f6c4f8dc860bd877f0a9fac /unpack-trees.c | |
parent | Fourth batch for 2.20 (diff) | |
download | tgif-07f967adb55fd2285f9c916b32731968e557acc3.tar.xz |
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.c | 2 |
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; |