From: Carlo Marcelo Arenas Belón Date: Thu, 18 Oct 2018 18:59:20 +0000 (-0700) Subject: multi-pack-index: avoid dead store for struct progress X-Git-Tag: v2.20.0-rc0~111^2 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=17eeb067dade419246c73a97cb86535723cee473;p=git.git multi-pack-index: avoid dead store for struct progress it is initialized unconditionally by a call to start_progress below. Signed-off-by: Carlo Marcelo Arenas Belón Signed-off-by: Junio C Hamano --- diff --git a/midx.c b/midx.c index ea2f3ffe2e..4fac0cd08a 100644 --- a/midx.c +++ b/midx.c @@ -941,7 +941,7 @@ static void midx_report(const char *fmt, ...) int verify_midx_file(const char *object_dir) { uint32_t i; - struct progress *progress = NULL; + struct progress *progress; struct multi_pack_index *m = load_multi_pack_index(object_dir, 1); verify_midx_error = 0;