未验证 提交 8d3b60b2 编写于 作者: O openharmony_ci 提交者: Gitee

!1366 Fix : read 返回值判断问题

Merge pull request !1366 from Mupceet/init_read
......@@ -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.
先完成此消息的编辑!
想要评论请 注册