mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
storage: Don't check the output of virGetUserRuntimeDirectory()
virGetUserRuntimeDirectory() *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
da3b2509bd
commit
6207bee80b
@ -278,8 +278,6 @@ storageStateInitialize(bool privileged,
|
|||||||
} else {
|
} else {
|
||||||
configdir = virGetUserConfigDirectory();
|
configdir = virGetUserConfigDirectory();
|
||||||
rundir = virGetUserRuntimeDirectory();
|
rundir = virGetUserRuntimeDirectory();
|
||||||
if (!rundir)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
||||||
driver->autostartDir = g_strdup_printf("%s/storage/autostart", configdir);
|
driver->autostartDir = g_strdup_printf("%s/storage/autostart", configdir);
|
||||||
|
Loading…
Reference in New Issue
Block a user