Fix CID 1214328

This commit is contained in:
Anton Kochkov 2014-05-17 02:49:26 +04:00
parent 86d13f5340
commit 58b5e970ba

View File

@ -1197,7 +1197,9 @@ R_API int r_bin_select(RBin *bin, const char *arch, int bits, const char *name)
RBinObject *obj = NULL;
name = !name && cur ? cur->file : name;
binfile = r_bin_file_find_by_arch_bits (bin, arch, bits, name);
obj = r_bin_object_find_by_arch_bits (binfile, arch, bits, name);
if (binfile) {
obj = r_bin_object_find_by_arch_bits (binfile, arch, bits, name);
}
return binfile && r_bin_file_set_cur_binfile_obj (bin, binfile, obj);
}