From 1f9f5f475ffef8bcbc6f8c84e7a75fa32f697c59 Mon Sep 17 00:00:00 2001 From: Victor Wheeler Date: Mon, 6 Jan 2025 18:45:58 -0700 Subject: [PATCH] fix(lv_canvas.c): fix use of uninitialized variable (#7556) --- src/widgets/canvas/lv_canvas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/canvas/lv_canvas.c b/src/widgets/canvas/lv_canvas.c index 342f52fb4..ab45988b2 100644 --- a/src/widgets/canvas/lv_canvas.c +++ b/src/widgets/canvas/lv_canvas.c @@ -129,6 +129,7 @@ void lv_canvas_set_px(lv_obj_t * obj, int32_t x, int32_t y, lv_color_t color, lv break; case LV_COLOR_FORMAT_I8: /*Indexed8 format is a easy case, process and return.*/ + shift = 0; *data = c_int; default: return;