xbps_transaction_commit: initialize bool var to avoid unexpected branch.

This commit is contained in:
Juan RP 2014-01-03 11:35:20 +01:00
parent 3397e6b0f4
commit 767566558c

View File

@ -249,6 +249,7 @@ xbps_transaction_commit(struct xbps_handle *xhp)
/*
* Remove package.
*/
update = false;
xbps_dictionary_get_bool(obj, "remove-and-update", &update);
rv = xbps_remove_pkg(xhp, pkgver, update);
if (rv != 0) {