Skip to contentSkip to conversation

unpack-trees: avoid dead store for struct progress

PATCH New Carlo Marcelo Arenas Belón 1 participant 1 message Oct 18, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unpack-trees: avoid dead store for struct progress

it is unconditionally initialized a few lines below

---
 unpack-trees.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
unpack-trees.c +1 -1
index f25089b878..88dc9a615e 100644
@@ -340,7 +340,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;
Signature · 1 line
2.19.1