From 879ae387663bb932ae8f5517c24b3a97b72b2f7e Mon Sep 17 00:00:00 2001 From: Damien Tardy-Panis Date: Mon, 8 May 2023 11:36:28 +0200 Subject: [PATCH] Fix uninitialized pointer and touch structs in run_menu Fixes #338 --- client/common/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common/common.c b/client/common/common.c index ececbaf..0c545e1 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -608,8 +608,8 @@ run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(cons uint32_t unicode; enum bm_key key = BM_KEY_NONE; - struct bm_pointer pointer; - struct bm_touch touch; + struct bm_pointer pointer = {0}; + struct bm_touch touch = {0}; enum bm_run_result status = BM_RUN_RESULT_RUNNING; do { if (!bm_menu_render(menu)) {