Skip to content

Commit 48542e3

Browse files
committed
Merge branch 'cb/remove-dead-init'
Code clean-up. * cb/remove-dead-init: multi-pack-index: avoid dead store for struct progress unpack-trees: avoid dead store for struct progress
2 parents 99499e2 + 17eeb06 commit 48542e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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

unpack-trees.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static int check_updates(struct unpack_trees_options *o)
380380
{
381381
unsigned cnt = 0;
382382
int errs = 0;
383-
struct progress *progress = NULL;
383+
struct progress *progress;
384384
struct index_state *index = &o->result;
385385
struct checkout state = CHECKOUT_INIT;
386386
int i;

0 commit comments

Comments
 (0)