zero-out instruction details, mnemonic & op_str so cs_insn doesnt have garbage in Diet mode
diff --git a/cs.c b/cs.c
index 9cc98a3..a78fb9a 100644
--- a/cs.c
+++ b/cs.c
@@ -460,6 +460,11 @@
// save all the information for non-detailed mode
mci.flat_insn = insn_cache;
mci.flat_insn->address = offset;
+#ifdef CAPSTONE_DIET
+ // zero out mnemonic & op_str
+ mci.flat_insn->mnemonic[0] = '\0';
+ mci.flat_insn->op_str[0] = '\0';
+#endif
r = handle->disasm(ud, buffer, size, &mci, &insn_size, offset, handle->getinsn_info);
if (r) {