mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-29 20:11:16 +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 {
|
||||
configdir = virGetUserConfigDirectory();
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
if (!(configdir && rundir))
|
||||
if (!rundir)
|
||||
goto error;
|
||||
|
||||
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
||||
|
Loading…
Reference in New Issue
Block a user