Fix #30 (segment fault in xbps-rindex)

This commit is contained in:
Juan RP
2014-01-22 11:53:08 +01:00
parent 7f5bd2f8a3
commit c03505b13e
3 changed files with 6 additions and 1 deletions

View File

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