xbps_transaction_prepare: initialize trans dict!
... otherwise it will always return ENXIO
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user