lib/transaction_package_replace.c: CID 62693 (dereference NULL return value)

This commit is contained in:
Juan RP 2014-10-05 12:50:50 +02:00
parent 1edd4e2ecf
commit 7310322cbf

View File

@ -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.