diff options
| author | Bernard Xiong <[email protected]> | 2020-01-02 11:50:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-01-02 11:50:57 +0800 |
| commit | 24f961fa70c7d110dd24c6c5b043aacfe4f2ce13 (patch) | |
| tree | 65dba79ea79fa593c79d03e22c2bf4df50b95232 /components | |
| parent | 848c3ff02bb10126d62ab9320973eda33c4f69e1 (diff) | |
| parent | b87f493f2ba9a27fb6f387d5e7a1170365192a2b (diff) | |
Merge pull request #3303 from junlon2006/hotfix/compile-warning
:bug: fix compile warning, undefine var
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/audio/audio.c b/components/drivers/audio/audio.c index 28ddf0fe56..4cec8a4a9c 100644 --- a/components/drivers/audio/audio.c +++ b/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); |
