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

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;