From 2f1fd70a4e9ec65dc83a4d98dba1b3fc2be9c6ce Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Jun 2019 17:13:06 +0200 Subject: [PATCH] xbps_transaction_prepare: initialize trans dict! ... otherwise it will always return ENXIO --- lib/transaction_prepare.c | 3 +++ 1 file changed, 3 insertions(+) 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;