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;
|
||||
}
|
||||
|
||||
if (xbps_pkg_has_rundeps(pkgrd)) {
|
||||
if (pkgrd && xbps_pkg_has_rundeps(pkgrd)) {
|
||||
rv = xbps_update_pkg_requiredby(array, pkgrd);
|
||||
if (rv != 0) {
|
||||
prop_object_release(pkgd);
|
||||
|
|
Loading…
Reference in a new issue