From 4a4e6b59b1c135af48dc0b2258faa50480e91992 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Sat, 15 Feb 2020 13:31:47 -0500 Subject: [PATCH] Fix two -Wuninitialized warnings --- src/lv_core/lv_style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_core/lv_style.c b/src/lv_core/lv_style.c index e21047322..cefbd829c 100644 --- a/src/lv_core/lv_style.c +++ b/src/lv_core/lv_style.c @@ -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++) {