mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
* Minor refactoring of rabin2 main()
This commit is contained in:
parent
4a233f58a2
commit
d7afa73011
@ -822,19 +822,13 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (action & ACTION_LISTARCHS) {
|
||||
if (action & ACTION_LISTARCHS || ((arch || bits || arch_name) &&
|
||||
!r_bin_select (bin, arch, bits, arch_name))) {
|
||||
r_bin_list_archs (bin);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (arch || bits || arch_name) {
|
||||
if (!r_bin_select (bin, arch, bits, arch_name)) {
|
||||
r_bin_list_archs (bin);
|
||||
free (arch);
|
||||
free (arch_name);
|
||||
r_bin_free (bin);
|
||||
return 1;
|
||||
}
|
||||
free (arch);
|
||||
free (arch_name);
|
||||
r_bin_free (bin);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (action&ACTION_SECTIONS)
|
||||
|
Loading…
Reference in New Issue
Block a user