mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
secret: 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
6207bee80b
commit
01b2f93df8
@ -478,8 +478,7 @@ secretStateInitialize(bool privileged,
|
||||
cfgdir = virGetUserConfigDirectory();
|
||||
driver->configDir = g_strdup_printf("%s/secrets/", cfgdir);
|
||||
|
||||
if (!(rundir = virGetUserRuntimeDirectory()))
|
||||
goto error;
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
driver->stateDir = g_strdup_printf("%s/secrets/run", rundir);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user