mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Fix func_calls to not pass NULL but WASM_EMPTY_VEC
This commit is contained in:
@@ -171,7 +171,10 @@ int main(int argc, char* argv[]) {
|
||||
print_wasmer_error();
|
||||
return -1;
|
||||
}
|
||||
own wasm_trap_t* trap = wasm_func_call(start_function, NULL, NULL);
|
||||
|
||||
wasm_val_vec_t args = WASM_EMPTY_VEC;
|
||||
wasm_val_vec_t results = WASM_EMPTY_VEC;
|
||||
own wasm_trap_t* trap = wasm_func_call(start_function, &args, &results);
|
||||
if (trap) {
|
||||
fprintf(stderr, "Trap is not NULL: TODO:\n");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user