Skip to content

Commit 17eeb06

Browse files
carenasgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 07f967a commit 17eeb06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

midx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static void midx_report(const char *fmt, ...)
941941
int verify_midx_file(const char *object_dir)
942942
{
943943
uint32_t i;
944-
struct progress *progress = NULL;
944+
struct progress *progress;
945945
struct multi_pack_index *m = load_multi_pack_index(object_dir, 1);
946946
verify_midx_error = 0;
947947

0 commit comments

Comments
 (0)