xbps_callback_array_iter_reverse: initialize rv (fixes garbage return value).
This commit is contained in:
parent
ae254e9b06
commit
e844bc1ad5
@ -143,7 +143,7 @@ xbps_callback_array_iter_reverse(struct xbps_handle *xhp,
|
|||||||
{
|
{
|
||||||
prop_object_t obj;
|
prop_object_t obj;
|
||||||
unsigned int cnt;
|
unsigned int cnt;
|
||||||
int rv;
|
int rv = 0;
|
||||||
bool loop_done = false;
|
bool loop_done = false;
|
||||||
|
|
||||||
assert(prop_object_type(array) == PROP_TYPE_ARRAY);
|
assert(prop_object_type(array) == PROP_TYPE_ARRAY);
|
||||||
|
Loading…
Reference in New Issue
Block a user