Skip to content

Commit dbdf3df

Browse files
authored
Use plain assignment rather than bh_memcpy_s (#3924)
1 parent 9d8150e commit dbdf3df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/iwasm/interpreter/wasm_runtime.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,8 @@ globals_instantiate(WASMModule *module, WASMModuleInstance *module_inst,
12081208

12091209
/* The linked global instance has been initialized, we
12101210
just need to copy the value. */
1211-
bh_memcpy_s(&(global->initial_value), sizeof(WASMValue),
1212-
&(global_import->import_global_linked->init_expr.u),
1213-
sizeof(WASMValue));
1211+
global->initial_value =
1212+
global_import->import_global_linked->init_expr.u;
12141213
}
12151214
else
12161215
#endif

0 commit comments

Comments
 (0)