summaryrefslogtreecommitdiff
path: root/firmware/2lib/2ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/2ui.c')
-rw-r--r--firmware/2lib/2ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/2lib/2ui.c b/firmware/2lib/2ui.c
index eab7c58d..10f51d6a 100644
--- a/firmware/2lib/2ui.c
+++ b/firmware/2lib/2ui.c
@@ -223,6 +223,7 @@ vb2_error_t ui_loop(struct vb2_context *ctx, enum vb2_screen root_screen_id,
vb2_error_t (*action)(struct vb2_ui_context *ui);
vb2_error_t rv;
+ memset(&ui, 0, sizeof(ui));
ui.ctx = ctx;
ui.root_screen = vb2_get_screen_info(root_screen_id);
if (ui.root_screen == NULL)