Do not print ao's type2 if it's null

This commit is contained in:
pancake 2016-03-11 09:50:36 +01:00
parent 3511c9198f
commit e68b5f2463

View File

@ -404,7 +404,12 @@ static void core_anal_bytes(RCore *core, const ut8 *buf, int len, int nops, int
printline ("refptr", "%d\n", op.refptr);
printline ("size", "%d\n", size);
printline ("type", "%s\n", r_anal_optype_to_string (op.type));
printline ("type2", "%s\n", r_anal_optype_to_string (op.type2));
{
const char *t2 = r_anal_optype_to_string (op.type2);
if (t2 && strcmp (t2, "null")) {
printline ("type2", "%s\n", t2);
}
}
if (*R_STRBUF_SAFEGET (&op.esil))
printline ("esil", "%s\n", R_STRBUF_SAFEGET (&op.esil));
if (hint && hint->jump != UT64_MAX)