* Minor refactoring of rabin2 main()

This commit is contained in:
Nibble 2011-09-04 02:44:53 +02:00
parent 4a233f58a2
commit d7afa73011

View File

@ -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)