提交 f6041202 编写于 作者: H hong 提交者: cai

fix warning: 'ret' is used uninitialized in this function

Signed-off-by: Nhong <hong@liuxiuhai.cn>
上级 cd728edf
......@@ -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.
先完成此消息的编辑!
想要评论请 注册