Fix func_calls to not pass NULL but WASM_EMPTY_VEC

This commit is contained in:
Mark McCaskey
2020-10-19 14:50:39 -07:00
parent 6d326233f7
commit c5df8cfd9e
3 changed files with 10 additions and 6 deletions

View File

@@ -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;