mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-01 17:11:51 +00:00
fix a tiny bug
This commit is contained in:
parent
f44864c0ea
commit
c37fa5c0ce
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user