Fix bug introduced by the latest changes to git-pack-redundant
I forgot to initialize part of the pll struct when copying it. Found by valgrind. Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
c3e24a7d46
commit
3afd169480
@ -439,7 +439,7 @@ void minimize(struct pack_list **min)
|
|||||||
break; /* ignore all larger permutations */
|
break; /* ignore all larger permutations */
|
||||||
if (is_superset(perm->pl, missing)) {
|
if (is_superset(perm->pl, missing)) {
|
||||||
new_perm = xmalloc(sizeof(struct pll));
|
new_perm = xmalloc(sizeof(struct pll));
|
||||||
new_perm->pl = perm->pl;
|
memcpy(new_perm, perm, sizeof(struct pll));
|
||||||
new_perm->next = perm_ok;
|
new_perm->next = perm_ok;
|
||||||
perm_ok = new_perm;
|
perm_ok = new_perm;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user