lib/repo.c: CID 62706 (argument cannot be negative)
This commit is contained in:
parent
960c3fdcdf
commit
9fc6c9d70e
@ -196,7 +196,7 @@ xbps_repo_open(struct xbps_handle *xhp, const char *url, bool lock)
|
|||||||
out:
|
out:
|
||||||
if (repo->ar)
|
if (repo->ar)
|
||||||
archive_read_free(repo->ar);
|
archive_read_free(repo->ar);
|
||||||
if (repo->fd)
|
if (repo->fd != -1)
|
||||||
close(repo->fd);
|
close(repo->fd);
|
||||||
free(repofile);
|
free(repofile);
|
||||||
free(repo);
|
free(repo);
|
||||||
|
Loading…
Reference in New Issue
Block a user