summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index c89abe69..b71d2fae 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -56,8 +56,10 @@ pmtrans_t *_alpm_trans_new()
return(trans);
}
-void _alpm_trans_free(pmtrans_t *trans)
+void _alpm_trans_free(void *data)
{
+ pmtrans_t *trans = data;
+
if(trans == NULL) {
return;
}