summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2018-10-18 18:46:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-19 02:16:52 (GMT)
commit07f967adb55fd2285f9c916b32731968e557acc3 (patch)
tree40824befe9f3817e8f6c4f8dc860bd877f0a9fac /unpack-trees.c
parenta4b8ab5363a32f283a61ef3a962853556d136c0e (diff)
downloadgit-07f967adb55fd2285f9c916b32731968e557acc3.zip
git-07f967adb55fd2285f9c916b32731968e557acc3.tar.gz
git-07f967adb55fd2285f9c916b32731968e557acc3.tar.bz2
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>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 51bfac6..7570df4 100644
--- 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;