From: Lukas Sandström Date: Fri, 18 Nov 2005 16:30:29 GMT Subject: [PATCH] Fix bug introduced by the latest changes to git-pack-redundant Message-ID: <437E01A5.7040501@etek.chalmers.se> In-Reply-To: <437C819C.4040507@etek.chalmers.se> I forgot to initialize part of the pll struct when copying it. Found by valgrind. Signed-off-by: Lukas Sandström --- pack-redundant.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) applies-to: 500482a7b3ebb2ebac182136696cb124332feba8 b51be59ab5b323ef148f833976a9c324d6a27404 diff --git a/pack-redundant.c b/pack-redundant.c index 2d7183e..3123f45 100644 --- a/pack-redundant.c +++ b/pack-redundant.c @@ -442,7 +442,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; } --- 0.99.9.GIT