1
0
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:
Thomas Devoogdt 2025-01-08 19:56:05 +01:00 committed by GitHub
parent bccf82efa1
commit 53b4c6a2c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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