mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-27 10:00:59 +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");
|
||||
goto fail;
|
||||
}
|
||||
if (errno != 0 || mask_val < 0 || mask_val > 128) {
|
||||
if (errno != 0 || mask_val < 0) {
|
||||
snprintf(error_buf, error_buf_size,
|
||||
"Init wasi environment failed: invalid mask number");
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user