From 6b84d75dc114c49e9e5d3db44ff6519d34a839bf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2019 16:17:16 +0200 Subject: [PATCH] lib/transaction_dictionary.c: fix dead assignment. Found by clang-analyzer. Bug Summary File: lib/transaction_dictionary.c Warning: line 68, column 2 Value stored to 'rootdir_free_size' is never read --- lib/transaction_dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_dictionary.c b/lib/transaction_dictionary.c index fee54a68..0651a5f3 100644 --- a/lib/transaction_dictionary.c +++ b/lib/transaction_dictionary.c @@ -65,7 +65,7 @@ compute_transaction_stats(struct xbps_handle *xhp) const char *tract, *pkgver, *repo; inst_pkgcnt = up_pkgcnt = cf_pkgcnt = rm_pkgcnt = dl_pkgcnt = 0; - rootdir_free_size = tsize = dlsize = instsize = rmsize = 0; + tsize = dlsize = instsize = rmsize = 0; iter = xbps_array_iter_from_dict(xhp->transd, "packages"); if (iter == NULL)