mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
network: Don't check the output of virGetUserConfigDirectory()
virGetUserConfigDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c1a1c75952
commit
70c2052011
@ -741,7 +741,7 @@ networkStateInitialize(bool privileged,
|
||||
} else {
|
||||
configdir = virGetUserConfigDirectory();
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
if (!(configdir && rundir))
|
||||
if (!rundir)
|
||||
goto error;
|
||||
|
||||
network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user