mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue