From 0ee0aaa39517dd307b5d82c0b0cfbb55464aa915 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2019 13:35:07 +0200 Subject: [PATCH] xbps-pkgdb/check_pkg_alternatives.c: dead store. Reported by clang-analyzer. --- bin/xbps-pkgdb/check_pkg_alternatives.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/xbps-pkgdb/check_pkg_alternatives.c b/bin/xbps-pkgdb/check_pkg_alternatives.c index 0f6c7ef7..90c4109b 100644 --- a/bin/xbps-pkgdb/check_pkg_alternatives.c +++ b/bin/xbps-pkgdb/check_pkg_alternatives.c @@ -160,8 +160,6 @@ check_pkg_alternatives(struct xbps_handle *xhp, const char *pkgname, void *arg) xbps_dictionary_t alternatives, pkg_alternatives; int rv = 0; - pkg_alternatives = arg; - alternatives = xbps_dictionary_get(xhp->pkgdb, "_XBPS_ALTERNATIVES_"); if (alternatives == NULL) return 0;