1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-03-28 09:49:56 +01:00

Fix uninitialized pointer and touch structs in run_menu

Fixes #338
This commit is contained in:
Damien Tardy-Panis 2023-05-08 11:36:28 +02:00 committed by Jari Vetoniemi
parent 8e2fd06f70
commit 879ae38766

View File

@ -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)) {