浏览代码

:bug: fix compile warning, undefine var

shangjinlong 5 年之前
父节点
当前提交
b87f493f2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/drivers/audio/audio.c

+ 1 - 1
components/drivers/audio/audio.c

@@ -33,7 +33,7 @@ static rt_err_t _audio_send_replay_frame(struct rt_audio_device *audio)
     rt_err_t result = RT_EOK;
     rt_uint8_t *data;
     rt_size_t dst_size, src_size;
-    rt_uint16_t position, remain_bytes, index = 0;
+    rt_uint16_t position, remain_bytes = 0, index = 0;
     struct rt_audio_buf_info *buf_info;
 
     RT_ASSERT(audio != RT_NULL);