fix: Do not duplicate ctx expr in check_call_opt_key!

(cherry picked from commit 86ddc63a573cd08ec19008448ec2fca33a84159e)
This commit is contained in:
Robert Hensing 2024-06-15 14:55:23 +02:00
parent 35803f4a30
commit da26721bea
2 changed files with 8 additions and 7 deletions

View file

@ -223,9 +223,9 @@ impl EvalState {
.with_context(|| "require_attrs_select_opt: attrName contains null byte")?;
let v2 = unsafe {
check_call_opt_key!(raw::get_attr_byname[
self.context,
&mut self.context,
v.raw_ptr(),
self.raw_ptr(),
self.eval_state.as_ptr(),
attr_name.as_ptr()
])
}?;