Merge pull request #3303 from junlon2006/hotfix/compile-warning

🐛 fix compile warning, undefine var
This commit is contained in:
Bernard Xiong 2020-01-02 11:50:57 +08:00 committed by GitHub
commit 24f961fa70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);