diff --git a/MCInst.c b/MCInst.c index 9c05f6f39b..9c5d7bac43 100644 --- a/MCInst.c +++ b/MCInst.c @@ -18,6 +18,7 @@ void MCInst_Init(MCInst *inst, cs_arch arch) { + memset(inst, 0, sizeof(MCInst)); // unnecessary to initialize in loop . its expensive and inst->size should be honored inst->Operands[0].Kind = kInvalid; inst->Operands[0].ImmVal = 0;