mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
Use add-sorted instead of append+sort ##anal
This commit is contained in:
parent
2eb706029c
commit
acc7a2543d
@ -775,8 +775,7 @@ static int core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int depth
|
||||
if (!f->fcn_locs) {
|
||||
f->fcn_locs = r_list_new ();
|
||||
}
|
||||
r_list_append (f->fcn_locs, fcn);
|
||||
r_list_sort (f->fcn_locs, &cmpfcn);
|
||||
r_list_add_sorted (f->fcn_locs, fcn, &cmpfcn);
|
||||
}
|
||||
}
|
||||
r_anal_xrefs_set (core->anal, from, fcn->addr, reftype);
|
||||
|
Loading…
Reference in New Issue
Block a user