xbps_transaction_remove_pkg: fix uninitialized argument value reported by scan-build.

This commit is contained in:
Juan RP 2013-04-04 09:22:40 +02:00
parent 0a1ea51e4e
commit dbf4bb184e

View File

@ -313,7 +313,7 @@ xbps_transaction_remove_pkg(struct xbps_handle *xhp,
prop_array_add(unsorted, obj); prop_array_add(unsorted, obj);
xbps_dbg_printf(xhp, "%s: added into transaction (remove).\n", pkgver); xbps_dbg_printf(xhp, "%s: added into transaction (remove).\n", pkgver);
} }
reqby = xbps_pkgdb_get_pkg_revdeps(xhp, pkgver); reqby = xbps_pkgdb_get_pkg_revdeps(xhp, pkgname);
/* /*
* If target pkg is required by any installed pkg, the client must be aware * If target pkg is required by any installed pkg, the client must be aware
* of this to take appropiate action. * of this to take appropiate action.