Skip to content

Commit

Permalink
fix(label): fix maybe-uninitialized warning (lvgl#6028)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Apr 10, 2024
1 parent 500e16e commit 5e4fa47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/label/lv_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 400,7 @@ uint32_t lv_label_get_letter_on(const lv_obj_t * obj, lv_point_t * pos_in, bool
char * bidi_txt;

#if LV_USE_BIDI
uint32_t txt_len;
uint32_t txt_len = 0;
if(bidi) {
bidi_txt = lv_malloc(new_line_start - line_start 1);
txt_len = new_line_start - line_start;
Expand Down

0 comments on commit 5e4fa47

Please sign in to comment.