xbps-pkgdb/check_pkg_alternatives.c: dead store.

Reported by clang-analyzer.
This commit is contained in:
Juan RP 2019-06-18 13:35:07 +02:00
parent b6a13945e0
commit 0ee0aaa395

View File

@ -160,8 +160,6 @@ check_pkg_alternatives(struct xbps_handle *xhp, const char *pkgname, void *arg)
xbps_dictionary_t alternatives, pkg_alternatives; xbps_dictionary_t alternatives, pkg_alternatives;
int rv = 0; int rv = 0;
pkg_alternatives = arg;
alternatives = xbps_dictionary_get(xhp->pkgdb, "_XBPS_ALTERNATIVES_"); alternatives = xbps_dictionary_get(xhp->pkgdb, "_XBPS_ALTERNATIVES_");
if (alternatives == NULL) if (alternatives == NULL)
return 0; return 0;