Skip to content

Commit c63afb7

Browse files
author
Le Yao
committed
Fix the wrong link field init
Signed-off-by: Le Yao <[email protected]>
1 parent 1d7d65c commit c63afb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wamr/wamr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool Wamr::link(std::string_view /*debug_name*/) {
296296
return false;
297297
}
298298

299-
wasm_extern_vec_t imports_vec = {imports.size(), imports.data()};
299+
wasm_extern_vec_t imports_vec = {imports.size(), imports.data(), imports.size()};
300300
instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr);
301301
if (instance_ == nullptr) {
302302
fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance");

0 commit comments

Comments
 (0)