fix(lv_canvas.c): fix use of uninitialized variable (#7556)

This commit is contained in:
Victor Wheeler
2025-01-06 18:45:58 -07:00
committed by GitHub
parent 2c4f722f4b
commit 1f9f5f475f
+1
View File
@@ -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;