From 442d52e878794d37546fb9dadff28cc5f8db1073 Mon Sep 17 00:00:00 2001 From: qiaohaijiao1 Date: Thu, 17 Mar 2022 11:06:11 +0800 Subject: [PATCH] system/nxlooper: fix warning nxlooper.c:615:7: warning: 'playbufs' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: qiaohaijiao1 --- 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 9791dd7eb..b71d75c23 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;