fix a tiny bug

This commit is contained in:
condret 2018-06-30 02:16:36 +00:00
parent f44864c0ea
commit c37fa5c0ce

View File

@ -403,7 +403,7 @@ R_API bool r_oids_foreach (ROIDStorage *storage, RIDStorageForeachCb cb, void *u
|| !storage->permutation) {
return false;
}
for (i = storage->ptop; i != 0; i--) {
for (i = storage->ptop - 1; i != 0; i--) {
id = storage->permutation[i];
if (!cb (user, storage->data->data[id], id)) {
return false;