[HUST CSE]fix:uninitialized *p (#7364)

Signed-off-by: bushilei <shileibu@hust.edu.cn>
This commit is contained in:
Bushilei 2023-04-25 11:20:40 +08:00 committed by GitHub
parent 00c04d925d
commit e902187a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ static rt_int16_t zrec_data32(rt_uint8_t *buf, rt_int16_t len)
rt_uint32_t crc;
rt_err_t res = -RT_ERROR;
rt_uint8_t *p,flag = 0;
p = buf;
crc_cnt = 0; crc = 0xffffffffL;
Rxcount = 0;
while (buf <= p+len)