mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
storage: 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
aa4a0264bf
commit
87df8493d5
@ -278,7 +278,7 @@ storageStateInitialize(bool privileged,
|
|||||||
} else {
|
} else {
|
||||||
configdir = virGetUserConfigDirectory();
|
configdir = virGetUserConfigDirectory();
|
||||||
rundir = virGetUserRuntimeDirectory();
|
rundir = virGetUserRuntimeDirectory();
|
||||||
if (!(configdir && rundir))
|
if (!rundir)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
||||||
|
Loading…
Reference in New Issue
Block a user