mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-28 02:20:50 +00:00
Apply suggestions from code review
Co-authored-by: liang.he <liang.he@intel.com>
This commit is contained in:
parent
02f59f10b2
commit
7c134400ae
|
|
@ -3842,7 +3842,7 @@ wasm_runtime_init_wasi(WASMModuleInstanceCommon *module_inst,
|
||||||
"Invalid address pool entry: mask must be a number");
|
"Invalid address pool entry: mask must be a number");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if (errno != 0 || mask_val < 0 || mask_val > 128) {
|
if (errno != 0 || mask_val < 0) {
|
||||||
snprintf(error_buf, error_buf_size,
|
snprintf(error_buf, error_buf_size,
|
||||||
"Init wasi environment failed: invalid mask number");
|
"Init wasi environment failed: invalid mask number");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user