lib/repo.c: fix dead assignment.
Found by clang-analyzer. Bug Summary File: lib/repo.c Warning: line 162, column 3 Value stored to 'rv' is never read
This commit is contained in:
parent
eddd2cd602
commit
00d552424d
@ -159,7 +159,6 @@ repo_open_local(struct xbps_repo *repo, const char *repofile)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((repo->idx = repo_get_dict(repo)) == NULL) {
|
if ((repo->idx = repo_get_dict(repo)) == NULL) {
|
||||||
rv = archive_errno(repo->ar);
|
|
||||||
xbps_dbg_printf(repo->xhp, "[repo] `%s' failed to internalize "
|
xbps_dbg_printf(repo->xhp, "[repo] `%s' failed to internalize "
|
||||||
" index on archive, removing file.\n", repofile);
|
" index on archive, removing file.\n", repofile);
|
||||||
/* broken archive, remove it */
|
/* broken archive, remove it */
|
||||||
|
Loading…
Reference in New Issue
Block a user