diff --git a/lib/transaction_prepare.c b/lib/transaction_prepare.c index 9921127d..79a68f2a 100644 --- a/lib/transaction_prepare.c +++ b/lib/transaction_prepare.c @@ -279,6 +279,9 @@ xbps_transaction_prepare(struct xbps_handle *xhp) unsigned int i, cnt; int rv = 0; + if ((rv = xbps_transaction_init(xhp)) != 0) + return rv; + if (xhp->transd == NULL) return ENXIO;