diff options
-rw-r--r-- | firmware/2lib/2ui.c | 1 |
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) |