diff --git a/lib/configure.c b/lib/configure.c index 8a695a3e725..7e93222c5be 100644 --- a/lib/configure.c +++ b/lib/configure.c @@ -59,6 +59,9 @@ xbps_configure_pkg(const char *pkgname) return EINVAL; pkgd = xbps_find_pkg_installed_from_plist(pkgname); + if (pkgd == NULL) + return ENOENT; + prop_dictionary_get_cstring_nocopy(pkgd, "version", &version); prop_object_release(pkgd);