Skip to content

Commit

Permalink
Fix uninitialized pointer and touch structs in run_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tardypad committed May 8, 2023
1 parent 8e2fd06 commit de6a470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/common/common.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit de6a470

Please sign in to comment.