1
0
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:
Gabor Kiss-Vamosi 2024-04-10 09:02:06 +02:00 committed by GitHub
parent 500e16e968
commit 5e4fa47b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;