summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 3a610c85..404e0619 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -364,7 +364,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
}
/* copy the skiplist over */
for(lp = trans->skiplist; lp; lp = lp->next) {
- tr->skiplist = pm_list_add(tr->skiplist, lp->data);
+ tr->skiplist = pm_list_add(tr->skiplist, strdup(lp->data));
}
if(remove_commit(tr, db) == -1) {
FREETRANS(tr);