mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(style): fix conditional jump or move depends on uninitialised value (#7571)
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
This commit is contained in:
parent
bccf82efa1
commit
53b4c6a2c2
@ -674,7 +674,7 @@ static lv_style_t * get_local_style(lv_obj_t * obj, lv_style_selector_t selector
|
||||
}
|
||||
|
||||
lv_memzero(&obj->styles[i], sizeof(lv_obj_style_t));
|
||||
obj->styles[i].style = lv_malloc(sizeof(lv_style_t));
|
||||
obj->styles[i].style = lv_malloc_zeroed(sizeof(lv_style_t));
|
||||
lv_style_init((lv_style_t *)obj->styles[i].style);
|
||||
|
||||
obj->styles[i].is_local = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user