Skip to content

Commit

Permalink
remove a redundant call to memset() in cs_disasm_ex()
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jun 6, 2014
1 parent 0ad226e commit 99e69e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion MCInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ struct MCInst {
// A prefix byte gets value 0 when irrelevant.
// This is copied from cs_x86 struct
uint8_t x86_prefix[4];
bool x86_lock_rep; // does this X86 insn contain LOCK/REP prefix?
};

void MCInst_Init(MCInst *inst);
Expand Down
2 changes: 0 additions & 2 deletions cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ size_t cs_disasm_ex(csh ud, const uint8_t *buffer, size_t size, uint64_t offset,

handle->errnum = CS_ERR_OK;

memset(insn_cache, 0, sizeof(insn_cache));

// save the original offset for SKIPDATA
offset_org = offset;

Expand Down

0 comments on commit 99e69e1

Please sign in to comment.