Skip to content

Commit

Permalink
Initialize local char array with a zero-length string
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 8, 2024
1 parent 98fb8d5 commit 74e066d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/page_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ static lv_obj_t *page_input_create(lv_obj_t *parent, panel_arr_t *arr) {
contentWidth += col_dsc[i];
}

char rollerOptionsStr[128];
char rollerOptionsStr[128] = "";
build_options_string(rollerActions, ARRAY_SIZE(rollerActions), rollerOptionsStr);
char btnOptionsStr[128];
char btnOptionsStr[128] = "";
build_options_string(btnActions, ARRAY_SIZE(btnActions), btnOptionsStr);

lv_obj_t *page = lv_menu_page_create(parent, NULL);
Expand Down

0 comments on commit 74e066d

Please sign in to comment.