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

!1034 【OpenHarmony开源贡献者计划2022】fix warning: 'ret' is used uninitialized in this function

Merge pull request !1034 from zhao_hong/ret
......@@ -224,7 +224,7 @@ static void BatchSavePersistParamEnd(PERSIST_SAVE_HANDLE handle)
int ret;
int fd = (int)handle;
ParamFileSync(fd);
ParamFileClose(fd);
ret = ParamFileClose(fd);
ParamMutexPost(&g_saveMutex);
PARAM_CHECK(ret == 0, return, "BatchSavePersistParamEnd fail error %d", errno);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册