xbps-checkvers: always initialize repourl.
This commit is contained in:
parent
818e399a8c
commit
e083440b70
@ -568,9 +568,9 @@ rcv_check_version(rcv_t *rcv)
|
|||||||
if (sz < 0 || (size_t)sz >= sizeof srcver)
|
if (sz < 0 || (size_t)sz >= sizeof srcver)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
|
repourl = NULL;
|
||||||
if (rcv->installed) {
|
if (rcv->installed) {
|
||||||
rcv->pkgd = xbps_pkgdb_get_pkg(&rcv->xhp, pkgname);
|
rcv->pkgd = xbps_pkgdb_get_pkg(&rcv->xhp, pkgname);
|
||||||
repourl = NULL;
|
|
||||||
} else {
|
} else {
|
||||||
rcv->pkgd = xbps_rpool_get_pkg(&rcv->xhp, pkgname);
|
rcv->pkgd = xbps_rpool_get_pkg(&rcv->xhp, pkgname);
|
||||||
xbps_dictionary_get_cstring_nocopy(rcv->pkgd, "repository", &repourl);
|
xbps_dictionary_get_cstring_nocopy(rcv->pkgd, "repository", &repourl);
|
||||||
|
Loading…
Reference in New Issue
Block a user