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;
|
char *buf;
|
||||||
const char *repodir, *native_arch;
|
const char *repodir, *native_arch;
|
||||||
int rv;
|
int rv = 0;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
assert(xhp != NULL);
|
assert(xhp != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user