Skip to content

Commit 07f967a

Browse files
carenasgitster
authored andcommitted
unpack-trees: avoid dead store for struct progress
it is unconditionally initialized a few lines below Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a4b8ab5 commit 07f967a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpack-trees.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static int check_updates(struct unpack_trees_options *o)
380380
{
381381
unsigned cnt = 0;
382382
int errs = 0;
383-
struct progress *progress = NULL;
383+
struct progress *progress;
384384
struct index_state *index = &o->result;
385385
struct checkout state = CHECKOUT_INIT;
386386
int i;

0 commit comments

Comments
 (0)