From e19970b5e0e2d317f6090f8904b38656a2cadb23 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Thu, 12 Oct 2023 16:51:15 +0900 Subject: [PATCH] types: Lock all elements we interact with Signed-off-by: Hector Martin --- src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.rs b/src/types.rs index 704f416..d3d1cf0 100644 --- a/src/types.rs +++ b/src/types.rs @@ -39,6 +39,7 @@ impl Elem { new_elem.id.set_name(cstr); new_elem.val.set_id(&new_elem.id); + helpers::lock_el(card, &new_elem.id, &new_elem.elem_name); helpers::read_ev(card, &mut new_elem.val, &new_elem.elem_name); return new_elem;