提交 7f5de067 编写于 作者: F Fabiano Fidêncio

remote: Don't check the output of virGetUserConfigDirectory()

virGetUserConfigDirectory() *never* *ever* returns NULL, making the
checks for it completely unnecessary.
Signed-off-by: NFabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 4dc0a51b
......@@ -81,8 +81,7 @@ daemonConfigFilePath(bool privileged, char **configfile)
} else {
g_autofree char *configdir = NULL;
if (!(configdir = virGetUserConfigDirectory()))
return -1;
configdir = virGetUserConfigDirectory();
*configfile = g_strdup_printf("%s/%s.conf", configdir, DAEMON_NAME);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册