From 7310322cbf33fcfb8c0affca8efebb62f25a7138 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 12:50:50 +0200 Subject: [PATCH] lib/transaction_package_replace.c: CID 62693 (dereference NULL return value) --- lib/transaction_package_replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_package_replace.c b/lib/transaction_package_replace.c index 5c706149..56048f87 100644 --- a/lib/transaction_package_replace.c +++ b/lib/transaction_package_replace.c @@ -77,7 +77,7 @@ xbps_transaction_package_replace(struct xbps_handle *xhp) xbps_dictionary_get_cstring_nocopy(instd, "pkgver", &curpkgver); curpkgname = xbps_pkg_name(curpkgver); - assert(curpkgver); + assert(curpkgname); /* * Check that we are not replacing the same package, * due to virtual packages.