xbps_callback_array_iter_reverse: initialize rv (fixes garbage return value).

This commit is contained in:
Juan RP 2013-04-04 09:13:52 +02:00
parent ae254e9b06
commit e844bc1ad5

View File

@ -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);