xbps-rindex: clean: avoid printing obj key after removal (dangling pointer) v2.
This commit is contained in:
parent
a8dc0dbdec
commit
5d63f6f442
@ -148,9 +148,9 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
|
||||
xbps_array_get_cstring_nocopy(cbd.result, x, &keyname);
|
||||
printf("index-files: removed entry %s\n", keyname);
|
||||
printf("index: removed entry %s\n", keyname);
|
||||
xbps_dictionary_remove(idxfiles, keyname);
|
||||
pkgname = xbps_pkg_name(keyname);
|
||||
xbps_dictionary_remove(idx, pkgname);
|
||||
xbps_dictionary_remove(idxfiles, keyname);
|
||||
free(pkgname);
|
||||
flush = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user