diff --git a/lib/transaction_check_revdeps.c b/lib/transaction_check_revdeps.c index 211f1df0..7e30e3e8 100644 --- a/lib/transaction_check_revdeps.c +++ b/lib/transaction_check_revdeps.c @@ -172,6 +172,8 @@ xbps_transaction_check_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs) error = true; goto out; } + + ttype = 0; if ((revpkgd = xbps_find_pkg_in_array(pkgs, pkgname, 0))) { ttype = xbps_transaction_pkg_type(revpkgd); if (ttype == XBPS_TRANS_REMOVE)