lib/package_remove.c: fix uninitialized xbps_array_t

This commit is contained in:
Duncan Overbruck 2019-08-05 15:48:11 +02:00
parent c815d3d5f5
commit df22b0384d

View File

@ -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;