mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
xbps_register_pkg: check for NULL pointer.
--HG-- extra : convert_revision : ccc656dc49c75e371d4de10bdcd0c07bf01090f2
This commit is contained in:
parent
28cfeea6d1
commit
97ceef46a8
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ xbps_register_pkg(prop_dictionary_t pkgrd, const char *pkgname,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xbps_pkg_has_rundeps(pkgrd)) {
|
if (pkgrd && xbps_pkg_has_rundeps(pkgrd)) {
|
||||||
rv = xbps_update_pkg_requiredby(array, pkgrd);
|
rv = xbps_update_pkg_requiredby(array, pkgrd);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
prop_object_release(pkgd);
|
prop_object_release(pkgd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue