summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index e63da6f4..ea0b29d2 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -362,7 +362,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
}
/* copy the skiplist over */
for(lp = trans->skiplist; lp; lp = lp->next) {
- pm_list_add(tr->skiplist, lp->data);
+ tr->skiplist = pm_list_add(tr->skiplist, lp->data);
}
if(remove_commit(tr, db) == -1) {
FREETRANS(tr);