Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
unpack-trees: avoid dead store for struct progress
author
Carlo Marcelo Arenas Belón
<carenas@gmail.com>
Thu, 18 Oct 2018 18:46:04 +0000
(11:46 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Oct 2018 02:16:52 +0000
(11:16 +0900)
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>
unpack-trees.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a4b8ab5
)
diff --git
a/unpack-trees.c
b/unpack-trees.c
index 51bfac6aa0bea246cdf6415490654b7ca2e4b9c2..7570df481bf69824e4b163a6c7a15985b72d1326 100644
(file)
--- 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;