xbps-query: use the _multi version to find out largest pkgver string.

This commit is contained in:
Juan RP 2013-10-08 10:39:20 +02:00
parent 3267fa05ad
commit 250916fa6a

View File

@ -218,7 +218,7 @@ find_longest_pkgver(struct xbps_handle *xhp, xbps_object_t o)
xbps_array_t array; xbps_array_t array;
array = xbps_dictionary_all_keys(o); array = xbps_dictionary_all_keys(o);
(void)xbps_array_foreach_cb(xhp, array, o, (void)xbps_array_foreach_cb_multi(xhp, array, o,
_find_longest_pkgver_cb, &ffl); _find_longest_pkgver_cb, &ffl);
xbps_object_release(array); xbps_object_release(array);
} else { } else {