Skip to content

Commit

Permalink
chore: try to fix auth token segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Dec 5, 2023
1 parent 198f232 commit 93e5907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flipt-engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub unsafe extern "C" fn initialize_engine(

let auth_token = engine_opts.auth_token.to_owned();

let parser = parser::HTTPParser::new(&http_url, auth_token.as_deref());
let parser = parser::HTTPParser::new(&http_url, auth_token.clone().as_deref());
let evaluator = evaluator::Evaluator::new_snapshot_evaluator(namespaces_vec, parser);

Box::into_raw(Box::new(Engine::new(evaluator.unwrap(), engine_opts))) as *mut c_void
Expand Down

0 comments on commit 93e5907

Please sign in to comment.