[HUST CSE]fix:uninitialized *p (#7364)
Signed-off-by: bushilei <shileibu@hust.edu.cn>
This commit is contained in:
parent
00c04d925d
commit
e902187a64
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue