Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions libr/core/cmd_print.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1962,16 +1962,19 @@ static void cmd_print_fromage(RCore *core, const char *input, const ut8 *data, i
if (is_json) {
if (s) {
free (s);
s = pj_drain (pj);
} else {
pj_free (pj);
}
s = pj_drain (pj);
r_cons_println (core->cons, s);
} else if (s) {
r_cons_print (core->cons, s);
} else {
R_LOG_ERROR ("Malformed object: did you supply enough data? try to change the block size (see b?)");
}
if (s) {
r_cons_print (core->cons, s);
if (is_json) {
r_cons_newline (core->cons);
}
free (s);
} else {
R_LOG_ERROR ("Malformed object: did you supply enough data? try to change the block size (see b?)");
}
break;
}
Expand Down
Loading
Loading