From bf1d0d3235f89a72f3f769603562c937cea3987b Mon Sep 17 00:00:00 2001 From: _VIFEXTech Date: Wed, 22 Nov 2023 22:40:45 +0800 Subject: [PATCH] fix(nuttx): fix uninitialized variables (#4848) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- src/dev/nuttx/lv_nuttx_entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dev/nuttx/lv_nuttx_entry.c b/src/dev/nuttx/lv_nuttx_entry.c index f6b23bb9b..3ded99045 100644 --- a/src/dev/nuttx/lv_nuttx_entry.c +++ b/src/dev/nuttx/lv_nuttx_entry.c @@ -88,6 +88,8 @@ void lv_nuttx_init(const lv_nuttx_dsc_t * dsc, lv_nuttx_result_t * result) #endif lv_tick_set_cb(millis); + lv_memzero(result, sizeof(lv_nuttx_result_t)); + #if !LV_USE_NUTTX_CUSTOM_INIT if(dsc && dsc->fb_path) {