diff --git a/pack-redundant.c b/pack-redundant.c index 1f8c577..4ed974e 100644 --- a/pack-redundant.c +++ b/pack-redundant.c @@ -358,11 +358,11 @@ size_t sizeof_union(struct packed_git *p size_t get_pack_redundancy(struct pack_list *pl) { struct pack_list *subset; + size_t ret = 0; if (pl == NULL) return 0; - size_t ret = 0; while ((subset = pl->next)) { while(subset) { ret += sizeof_union(pl->pack, subset->pack);