mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-09 15:00:42 +00:00
Fix r_anal_diff_fcn() so that case where only one function has NULL name is not treated the same as two functions with equal names
This commit is contained in:
parent
33421f00c6
commit
4ca278c2cb
@ -186,7 +186,7 @@ R_API int r_anal_diff_fcn(RAnal *anal, RList *fcns, RList *fcns2) {
|
||||
if (fcns) {
|
||||
r_list_foreach (fcns, iter, fcn) {
|
||||
r_list_foreach (fcns2, iter2, fcn2) {
|
||||
if (fcn->name && fcn2->name && strcmp (fcn->name, fcn2->name)) {
|
||||
if (!fcn->name || !fcn2->name || strcmp (fcn->name, fcn2->name)) {
|
||||
continue;
|
||||
}
|
||||
r_diff_buffers_distance (NULL, fcn->fingerprint, fcn->fingerprint_size,
|
||||
|
Loading…
Reference in New Issue
Block a user