mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -278,8 +278,6 @@ storageStateInitialize(bool privileged,
|
||||
} else {
|
||||
configdir = virGetUserConfigDirectory();
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
if (!rundir)
|
||||
goto error;
|
||||
|
||||
driver->configDir = g_strdup_printf("%s/storage", configdir);
|
||||
driver->autostartDir = g_strdup_printf("%s/storage/autostart", configdir);
|
||||
|
||||
Reference in New Issue
Block a user