This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 442d52e878794d37546fb9dadff28cc5f8db1073 Author: qiaohaijiao1 <qiaohaiji...@xiaomi.com> AuthorDate: Thu Mar 17 11:06:11 2022 +0800 system/nxlooper: fix warning nxlooper.c:615:7: warning: 'playbufs' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: qiaohaijiao1 <qiaohaiji...@xiaomi.com> --- system/nxlooper/nxlooper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/nxlooper/nxlooper.c b/system/nxlooper/nxlooper.c index 9791dd7..b71d75c 100644 --- a/system/nxlooper/nxlooper.c +++ b/system/nxlooper/nxlooper.c @@ -326,8 +326,8 @@ static void *nxlooper_loopthread(pthread_addr_t pvarg) struct audio_buf_desc_s buf_desc; struct ap_buffer_info_s recordbuf_info; struct ap_buffer_info_s playbuf_info; - FAR struct ap_buffer_s **playbufs; - FAR struct ap_buffer_s **recordbufs; + FAR struct ap_buffer_s **playbufs = NULL; + FAR struct ap_buffer_s **recordbufs = NULL; unsigned int prio; ssize_t size; bool running = true;