From e083440b70aef83cd2af3774521e37bed0deeb87 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 19 Jun 2019 14:00:54 +0200 Subject: [PATCH] xbps-checkvers: always initialize repourl. --- bin/xbps-checkvers/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index aba56c29..43ac0e89 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -568,9 +568,9 @@ rcv_check_version(rcv_t *rcv) if (sz < 0 || (size_t)sz >= sizeof srcver) exit(EXIT_FAILURE); + repourl = NULL; if (rcv->installed) { rcv->pkgd = xbps_pkgdb_get_pkg(&rcv->xhp, pkgname); - repourl = NULL; } else { rcv->pkgd = xbps_rpool_get_pkg(&rcv->xhp, pkgname); xbps_dictionary_get_cstring_nocopy(rcv->pkgd, "repository", &repourl);