Skip to content

Commit

Permalink
print empty json list when there are no xrefs (radareorg#7487)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianherrera authored and radare committed May 13, 2017
1 parent ea27519 commit b0b1c7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libr/core/cmd_anal.c
Original file line number Diff line number Diff line change
Expand Up @@ -4136,6 +4136,10 @@ static bool cmd_anal_refs(RCore *core, const char *input) {
}
}
r_list_free (list);
} else {
if (input[1] == 'j') { // "axtj"
r_cons_print ("[]\n");
}
}
} break;
case 'f': { // "axf"
Expand Down Expand Up @@ -4214,6 +4218,10 @@ static bool cmd_anal_refs(RCore *core, const char *input) {
}
}
r_list_free (list_);
} else {
if (input[1] == 'j') { // axfj
r_cons_print ("[]\n");
}
}
} break;
case 'F':
Expand Down

0 comments on commit b0b1c7f

Please sign in to comment.