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 <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Carlo Marcelo Arenas Belón committed
Oct 18, 2018 at 11:59 UTC
17eeb067dade419246c73a97cb86535723cee473
1 file changed
+1
-1
midx.c
+1
-1
@@ -941,7 +941,7 @@ static void midx_report(const char *fmt, ...)
941
int verify_midx_file(const char *object_dir)
942
{
943
uint32_t i;
944
- struct progress *progress = NULL;
944
+ struct progress *progress;
945
struct multi_pack_index *m = load_multi_pack_index(object_dir, 1);
946
verify_midx_error = 0;
947