xbps_init: fix a logic error.

Initialize rv to avoid a logic error.

Found by clang-analyzer.

Bug Summary
File: lib/initend.c
Warning: line 101, column 10
The left operand of '<' is a garbage value
This commit is contained in:
Juan RP 2019-06-18 15:11:56 +02:00
parent 87f7766c5f
commit d16a2fc987

View File

@ -45,7 +45,7 @@ xbps_init(struct xbps_handle *xhp)
{
char *buf;
const char *repodir, *native_arch;
int rv;
int rv = 0;
size_t size;
assert(xhp != NULL);