Fix #30 (segment fault in xbps-rindex)
This commit is contained in:
parent
7f5bd2f8a3
commit
c03505b13e
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
||||
xbps-0.30 (??):
|
||||
|
||||
* Fixed issue #30: https://github.com/voidlinux/xbps/issues/30
|
||||
|
||||
* Fixed issue #29: https://github.com/voidlinux/xbps/issues/29
|
||||
|
||||
* Fixed issue #28: https://github.com/voidlinux/xbps/issues/28
|
||||
|
@ -131,7 +131,7 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
|
||||
idxfiles = xbps_dictionary_copy(repo->idxfiles);
|
||||
xbps_repo_close(repo);
|
||||
if (idx == NULL || idxfiles == NULL) {
|
||||
fprintf(stderr, "incomplete repository data file!");
|
||||
fprintf(stderr, "incomplete repository data file!\n");
|
||||
return -1;
|
||||
}
|
||||
printf("Cleaning `%s' index, please wait...\n", repodir);
|
||||
|
@ -65,6 +65,9 @@ repo_get_dict(struct xbps_repo *repo)
|
||||
size_t size;
|
||||
int rv;
|
||||
|
||||
if (repo->ar == NULL)
|
||||
return NULL;
|
||||
|
||||
rv = archive_read_next_header(repo->ar, &entry);
|
||||
if (rv != ARCHIVE_OK) {
|
||||
xbps_dbg_printf(repo->xhp,
|
||||
|
Loading…
Reference in New Issue
Block a user