mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 20:36:40 +08:00
fix(label): add assignment to uninitialized variable (#7587)
This commit is contained in:
@@ -320,6 +320,7 @@ void lv_label_get_letter_pos(const lv_obj_t * obj, uint32_t char_id, lv_point_t
|
|||||||
pos->x = lv_obj_get_content_width(obj) / 2;
|
pos->x = lv_obj_get_content_width(obj) / 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
pos->x = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user