diff --git a/lib/install.c b/lib/install.c index 81bfc104063..d87520e20e0 100644 --- a/lib/install.c +++ b/lib/install.c @@ -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);