From 767566558ca773ee471485eb2c586bd71192df12 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 3 Jan 2014 11:35:20 +0100 Subject: [PATCH] xbps_transaction_commit: initialize bool var to avoid unexpected branch. --- lib/transaction_commit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index 182a77a4..7ff6cf24 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -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) {