summaryrefslogtreecommitdiff
path: root/pack-redundant.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack-redundant.c')
-rw-r--r--pack-redundant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-redundant.c b/pack-redundant.c
index 51d7341b0b..36556092c9 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;
}