mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(label): fix maybe-uninitialized warning (#6028)
This commit is contained in:
parent
500e16e968
commit
5e4fa47b20
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user