Skip to content

Commit 8d79672

Browse files
author
Hritik Gupta
committed
minor fix
1 parent ee62523 commit 8d79672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/common/wasm_shared_memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ notify_stale_threads_on_exception(WASMModuleInstanceCommon *module_inst)
124124

125125
/* allocate memory */
126126
uint32 total_size = sizeof(void *) * total_elem_count;
127-
void *temp_addr[total_size];
128-
memset(temp_addr, 0, sizeof(temp_addr));
127+
void *temp_addr[total_elem_count];
128+
memset(temp_addr, 0, total_size);
129129

130130
args->addr = temp_addr;
131131

0 commit comments

Comments
 (0)