Fix some static scan issues (#2362)

This commit is contained in:
Xu Jun
2023-07-18 16:06:21 +08:00
committed by GitHub
parent 81f0371f63
commit fbcf8c2c60
2 changed files with 9 additions and 4 deletions

View File

@ -1104,10 +1104,14 @@ execute_post_instantiate_functions(WASMModuleInstance *module_inst,
goto fail;
}
#if WASM_ENABLE_LIBC_WASI != 0
if (initialize_func
&& !wasm_call_function(exec_env, initialize_func, 0, NULL)) {
goto fail;
}
#else
(void)initialize_func;
#endif
if (post_inst_func
&& !wasm_call_function(exec_env, post_inst_func, 0, NULL)) {