bin/xbps-rindex/index-clean.c: CID 62708 (NULL pointer dereference)
This commit is contained in:
parent
fcf464d2fa
commit
4a188a433a
@ -162,6 +162,7 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
|
|||||||
printf("index-files: removed entry %s\n", keyname);
|
printf("index-files: removed entry %s\n", keyname);
|
||||||
printf("index: removed entry %s\n", keyname);
|
printf("index: removed entry %s\n", keyname);
|
||||||
pkgname = xbps_pkg_name(keyname);
|
pkgname = xbps_pkg_name(keyname);
|
||||||
|
assert(pkgname);
|
||||||
xbps_dictionary_remove(idxfiles, keyname);
|
xbps_dictionary_remove(idxfiles, keyname);
|
||||||
xbps_dictionary_remove(idx, pkgname);
|
xbps_dictionary_remove(idx, pkgname);
|
||||||
free(pkgname);
|
free(pkgname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user