lib/transaction_package_replace.c: CID 62693 (dereference NULL return value)
This commit is contained in:
1 parent
1edd4e2ecf
commit
7310322cbf
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user