fix mnem undeclared error

This commit is contained in:
kabeor 2022-01-09 11:20:05 +08:00
parent 7e3f590dbd
commit cbd762a92f
1 changed files with 3 additions and 0 deletions

3
cs.c
View File

@ -535,6 +535,9 @@ static int str_replace(char *result, char *target, const char *str1, char *str2)
static void fill_insn(struct cs_struct *handle, cs_insn *insn, char *buffer, MCInst *mci,
PostPrinter_t postprinter, const uint8_t *code)
{
#ifndef CAPSTONE_DIET
char *mnem;
#endif
uint16_t copy_size = MIN(sizeof(insn->bytes), insn->size);
// fill the instruction bytes.