threads / patch / 49608

patchunpack-trees: avoid dead store for struct progress

Subject: [PATCH] unpack-trees: avoid dead store for struct progress

## tl;dr

One message between Oct 18, 2018 and Oct 18, 2018. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Carlo Marcelo Arenas Belón· Oct 18, 2018, 18:46 UTC · lore
it is unconditionally initialized a few lines below
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 unpack-trees.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to unpack-trees.c +1 −1
diff --git a/unpack-trees.c b/unpack-trees.c
index f25089b878..88dc9a615e 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -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;
-- 
2.19.1

← back to recent threads