1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-23 17:32:11 +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

@ -608,8 +608,8 @@ run_menu(const struct client *client, struct bm_menu *menu, void (*item_cb)(cons
uint32_t unicode; uint32_t unicode;
enum bm_key key = BM_KEY_NONE; enum bm_key key = BM_KEY_NONE;
struct bm_pointer pointer; struct bm_pointer pointer = {0};
struct bm_touch touch; struct bm_touch touch = {0};
enum bm_run_result status = BM_RUN_RESULT_RUNNING; enum bm_run_result status = BM_RUN_RESULT_RUNNING;
do { do {
if (!bm_menu_render(menu)) { if (!bm_menu_render(menu)) {