mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
secret: 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
87df8493d5
commit
cb1560a66a
@ -475,8 +475,7 @@ secretStateInitialize(bool privileged,
|
||||
g_autofree char *rundir = NULL;
|
||||
g_autofree char *cfgdir = NULL;
|
||||
|
||||
if (!(cfgdir = virGetUserConfigDirectory()))
|
||||
goto error;
|
||||
cfgdir = virGetUserConfigDirectory();
|
||||
driver->configDir = g_strdup_printf("%s/secrets/", cfgdir);
|
||||
|
||||
if (!(rundir = virGetUserRuntimeDirectory()))
|
||||
|
Loading…
Reference in New Issue
Block a user