mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-25 00:52:28 +00:00
Kill a shadowed declaration of a local variable.
The variable tmp was already defined in the frame. Redefining it makes some code linters grumpy. Signed-off-by: Tyler J. Stachecki <tstache1@binghamton.edu>
This commit is contained in:
parent
88e8da65bd
commit
30d1167a93
2
cs.c
2
cs.c
@ -584,7 +584,7 @@ size_t cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, si
|
||||
total = NULL;
|
||||
} else if (f != cache_size) {
|
||||
// total did not fully use the last cache, so downsize it
|
||||
void *tmp = cs_mem_realloc(total, total_size - (cache_size - f) * sizeof(*insn_cache));
|
||||
tmp = cs_mem_realloc(total, total_size - (cache_size - f) * sizeof(*insn_cache));
|
||||
if (tmp == NULL) { // insufficient memory
|
||||
// free all detail pointers
|
||||
if (handle->detail) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user