bin/xbps-rindex/index-clean.c: CID 62708 (NULL pointer dereference)

This commit is contained in:
Juan RP 2014-10-07 07:50:03 +02:00
parent fcf464d2fa
commit 4a188a433a

View File

@ -162,6 +162,7 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
printf("index-files: removed entry %s\n", keyname);
printf("index: removed entry %s\n", keyname);
pkgname = xbps_pkg_name(keyname);
assert(pkgname);
xbps_dictionary_remove(idxfiles, keyname);
xbps_dictionary_remove(idx, pkgname);
free(pkgname);