xbps_transaction_commit: initialize bool var to avoid unexpected branch.
This commit is contained in:
parent
3397e6b0f4
commit
767566558c
@ -249,6 +249,7 @@ xbps_transaction_commit(struct xbps_handle *xhp)
|
|||||||
/*
|
/*
|
||||||
* Remove package.
|
* Remove package.
|
||||||
*/
|
*/
|
||||||
|
update = false;
|
||||||
xbps_dictionary_get_bool(obj, "remove-and-update", &update);
|
xbps_dictionary_get_bool(obj, "remove-and-update", &update);
|
||||||
rv = xbps_remove_pkg(xhp, pkgver, update);
|
rv = xbps_remove_pkg(xhp, pkgver, update);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user