Browse Source

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>
maint
Carlo Marcelo Arenas Belón 6 years ago committed by Junio C Hamano
parent
commit
07f967adb5
  1. 2
      unpack-trees.c

2
unpack-trees.c

@ -380,7 +380,7 @@ static int check_updates(struct unpack_trees_options *o) @@ -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;

Loading…
Cancel
Save