提交 f8d070b0 编写于 作者: C cheng_jinsong

Fix bug

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 5b377482
......@@ -138,7 +138,7 @@ static int LoadPersistParam(void)
buffer = malloc(fileSize);
PARAM_CHECK(buffer != NULL, break, "Failed to get file");
ret = ParamFileRead(fd, buffer, fileSize);
PARAM_CHECK(ret == 0, break, "Failed to get read file %s", path);
PARAM_CHECK(ret >= 0, break, "Failed to read file %s", path);
uint32_t currLen = 0;
while (currLen < fileSize) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册