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

qemu: Don't check the output of virGetUserDirectory()

virGetUserDirectory() *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>
上级 a4aaed61
......@@ -118,9 +118,6 @@ qemuInteropFetchConfigs(const char *name,
if (!xdgConfig) {
g_autofree char *home = virGetUserDirectory();
if (!home)
return -1;
xdgConfig = g_strdup_printf("%s/.config", home);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册