Let irj print an empty array when no relocation table is present (like isj) (#6974)

This commit is contained in:
Jonas Konrad 2017-03-10 12:40:36 +01:00 committed by radare
parent 542e06f656
commit de3bd8f09e

View File

@ -1202,9 +1202,6 @@ static int bin_relocs(RCore *r, int mode, int va) {
relocs = r_bin_patch_relocs (r->bin);
if (!relocs) {
relocs = r_bin_get_relocs (r->bin);
if (!relocs) {
return false;
}
}
if (IS_MODE_RAD (mode)) {
@ -1316,7 +1313,7 @@ static int bin_relocs(RCore *r, int mode, int va) {
if (IS_MODE_NORMAL (mode)) {
r_cons_printf ("\n%i relocations\n", i);
}
return true;
return relocs != NULL;
}
#define MYDB 1