clean cs_disasm_iter()

This commit is contained in:
Nguyen Anh Quynh 2014-10-12 20:24:33 +08:00
parent 2c8b2627d1
commit 9090672e97

5
cs.c
View File

@ -712,11 +712,6 @@ bool cs_disasm_iter(csh ud, const uint8_t **code, size_t *size,
sizeof(insn->mnemonic) - 1);
skipdata_opstr(insn->op_str, *code, skipdata_bytes);
// NOTE: if detail mode is OFF, content of detail pointer is irrelevant
// to be sure, zero out content of detail pointer
//if (insn->detail)
// memset(insn->detail, 0, sizeof(cs_detail));
*code += skipdata_bytes;
*size -= skipdata_bytes;
*address += skipdata_bytes;