From df22b0384d81794d625a4ad69a57944b6ecdb8ee Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Mon, 5 Aug 2019 15:48:11 +0200 Subject: [PATCH] lib/package_remove.c: fix uninitialized xbps_array_t --- lib/package_remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package_remove.c b/lib/package_remove.c index 75fc97aa..63cdb2dd 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -110,7 +110,7 @@ int HIDDEN xbps_remove_pkg(struct xbps_handle *xhp, const char *pkgver, bool update) { xbps_dictionary_t pkgd = NULL, obsd = NULL; - xbps_array_t obsoletes; + xbps_array_t obsoletes = NULL; char *pkgname, metafile[PATH_MAX]; int rv = 0; pkg_state_t state = 0;