mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +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 {
|
} 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user