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:
parent
90ea9821df
commit
1e9daf0200
@ -148,6 +148,8 @@ static FAR lv_disp_t *lcddev_init(int fd,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(lcddev_obj, 0, sizeof(struct lcddev_obj_s));
|
||||||
|
|
||||||
buf1 = malloc(buf_size);
|
buf1 = malloc(buf_size);
|
||||||
if (buf1 == NULL)
|
if (buf1 == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user