|
|
@@ -2369,9 +2369,6 @@ wasm_application_execute_func(WASMModuleInstanceCommon *module_inst,
|
|
|
goto fail;
|
|
|
}
|
|
|
|
|
|
- /* Clear errno before parsing arguments */
|
|
|
- errno = 0;
|
|
|
-
|
|
|
/* Parse arguments */
|
|
|
for (i = 0, p = 0; i < argc; i++) {
|
|
|
char *endptr = NULL;
|
|
|
@@ -2462,12 +2459,6 @@ wasm_application_execute_func(WASMModuleInstanceCommon *module_inst,
|
|
|
wasm_runtime_set_exception(module_inst, buf);
|
|
|
goto fail;
|
|
|
}
|
|
|
- if (errno != 0) {
|
|
|
- snprintf(buf, sizeof(buf),
|
|
|
- "prepare function argument error, errno: %d", errno);
|
|
|
- wasm_runtime_set_exception(module_inst, buf);
|
|
|
- goto fail;
|
|
|
- }
|
|
|
}
|
|
|
bh_assert(p == (int32)argc1);
|
|
|
|