lib/pkgdb.c: CID 62719 (NULL pointer dereference)
This commit is contained in:
parent
8d4a01baa4
commit
4be2a0ee84
@ -319,7 +319,9 @@ xbps_pkgdb_get_pkg_revdeps(struct xbps_handle *xhp, const char *pkg)
|
||||
|
||||
generate_full_revdeps_tree(xhp);
|
||||
xbps_dictionary_get_cstring_nocopy(pkgd, "pkgver", &pkgver);
|
||||
pkgname = xbps_pkg_name(pkgver);
|
||||
if ((pkgname = xbps_pkg_name(pkgver)) == NULL)
|
||||
return NULL;
|
||||
|
||||
res = xbps_dictionary_get(xhp->pkgdb_revdeps, pkgname);
|
||||
free(pkgname);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user