summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Sandström <lukass@etek.chalmers.se>2005-11-18 16:30:29 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-18 19:20:34 (GMT)
commit3afd169480f1970baeb54be639a496c71ff1e0a9 (patch)
tree6f0fa330ba627a11edc95423fdf23cbba3e1fac5
parentc3e24a7d461abaacc16c014ee427b37ab0102ca7 (diff)
downloadgit-3afd169480f1970baeb54be639a496c71ff1e0a9.zip
git-3afd169480f1970baeb54be639a496c71ff1e0a9.tar.gz
git-3afd169480f1970baeb54be639a496c71ff1e0a9.tar.bz2
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>
-rw-r--r--pack-redundant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-redundant.c b/pack-redundant.c
index 51d7341..3655609 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -439,7 +439,7 @@ void minimize(struct pack_list **min)
break; /* ignore all larger permutations */
if (is_superset(perm->pl, missing)) {
new_perm = xmalloc(sizeof(struct pll));
- new_perm->pl = perm->pl;
+ memcpy(new_perm, perm, sizeof(struct pll));
new_perm->next = perm_ok;
perm_ok = new_perm;
}