apps/graphics: add lcddev_obj initialization to fix crash in lcd_dev mode.

Reference: https://github.com/apache/nuttx/issues/11683

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
This commit is contained in:
rongyichang 2024-02-18 11:23:25 +08:00 committed by Xiang Xiao
parent 90ea9821df
commit 1e9daf0200

View File

@ -148,6 +148,8 @@ static FAR lv_disp_t *lcddev_init(int fd,
return NULL;
}
memset(lcddev_obj, 0, sizeof(struct lcddev_obj_s));
buf1 = malloc(buf_size);
if (buf1 == NULL)
{