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:
parent
87f7766c5f
commit
d16a2fc987
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user