1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Fix two -Wuninitialized warnings

This commit is contained in:
Themba Dube 2020-02-15 13:31:47 -05:00
parent 332124f1f4
commit 4a4e6b59b1

View File

@ -680,7 +680,7 @@ lv_res_t lv_style_list_get_int(lv_style_list_t * list, lv_style_property_t prop,
int16_t weight_act;
int16_t weight = -1;
lv_style_int_t value_act;
lv_style_int_t value_act = 0;
int16_t ci;
for(ci = 0; ci < list->style_cnt; ci++) {
@ -728,7 +728,7 @@ lv_res_t lv_style_list_get_color(lv_style_list_t * list, lv_style_property_t pro
int16_t weight_act;
int16_t weight = -1;
lv_color_t value_act;
lv_color_t value_act = { 0 };
int16_t ci;
for(ci = 0; ci < list->style_cnt; ci++) {