未验证 提交 871a950f 编写于 作者: O openharmony_ci 提交者: Gitee

!1036 【OpenHarmony开源贡献者计划2022】fix warning: declaration of 'ret' shadows a previous local

Merge pull request !1036 from zhao_hong/sec
......@@ -142,7 +142,7 @@ static int LoadPersistParam(void)
while (currLen < fileSize) {
if (buffer[currLen] == '\n') { // split line
buffer[currLen] = '\0';
int ret = SplitParamString(buffer, NULL, 0, LoadOnePersistParam_, NULL);
ret = SplitParamString(buffer, NULL, 0, LoadOnePersistParam_, NULL);
PARAM_CHECK(ret == 0, continue, "Failed to set param %d %s", ret, buffer);
paramNum++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册