瀏覽代碼

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

Signed-off-by: bushilei <shileibu@hust.edu.cn>
Bushilei 2 年之前
父節點
當前提交
e902187a64
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/utilities/zmodem/zcore.c

+ 1 - 1
components/utilities/zmodem/zcore.c

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