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

network: 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>
上级 c1a1c759
...@@ -741,7 +741,7 @@ networkStateInitialize(bool privileged, ...@@ -741,7 +741,7 @@ networkStateInitialize(bool privileged,
} else { } else {
configdir = virGetUserConfigDirectory(); configdir = virGetUserConfigDirectory();
rundir = virGetUserRuntimeDirectory(); rundir = virGetUserRuntimeDirectory();
if (!(configdir && rundir)) if (!rundir)
goto error; goto error;
network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir); network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册