mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13: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;
|
char * bidi_txt;
|
||||||
|
|
||||||
#if LV_USE_BIDI
|
#if LV_USE_BIDI
|
||||||
uint32_t txt_len;
|
uint32_t txt_len = 0;
|
||||||
if(bidi) {
|
if(bidi) {
|
||||||
bidi_txt = lv_malloc(new_line_start - line_start + 1);
|
bidi_txt = lv_malloc(new_line_start - line_start + 1);
|
||||||
txt_len = new_line_start - line_start;
|
txt_len = new_line_start - line_start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user