Skip to content

Commit

Permalink
Merge pull request #8 from extism/fix-double-invocation-error
Browse files Browse the repository at this point in the history
fix: Fixes double invocation error
  • Loading branch information
bhelx authored Jan 26, 2023
2 parents 9137ed6 + 17287de commit 8221a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
]

[workspace.package]
version = "0.3.1"
version = "0.3.2"
edition = "2021"
authors = ["The Extism Authors"]
license = "BSD-Clause-3"
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub extern "C" fn init() {

#[no_mangle]
pub unsafe extern "C" fn __invoke(func_idx: i32) -> i32 {
let code = unsafe { CODE.take().unwrap() };
let context = unsafe { CONTEXT.take().unwrap() };
let code = unsafe { CODE.get().unwrap() };
let context = unsafe { CONTEXT.get().unwrap() };

globals::inject_globals(&context).expect("Failed to initialize globals");

Expand Down

0 comments on commit 8221a4e

Please sign in to comment.