Fix incomplete drr/drrj formatting when r_core_anal_hasrefs fails (#15277) ##debug

This commit is contained in:
yossizap 2019-10-15 00:54:20 +00:00 committed by radare
parent 9de5481098
commit d8e08bc7ea

View File

@ -2083,6 +2083,12 @@ R_API void r_core_debug_rr(RCore *core, RReg *reg, int mode) {
r_cons_printf (" %s\n", rrstr);
}
free (rrstr);
} else {
if (mode == 'j') {
r_cons_printf (",\"ref\":\"\"}");
} else {
r_cons_printf ("\n");
}
}
}
if (mode == 'j') {