mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
qemu: 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
7f5de0672b
commit
c1a1c75952
@ -177,8 +177,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
|
|||||||
|
|
||||||
cfg->swtpmStateDir = g_strdup_printf("%s/swtpm", cfg->stateDir);
|
cfg->swtpmStateDir = g_strdup_printf("%s/swtpm", cfg->stateDir);
|
||||||
|
|
||||||
if (!(cfg->configBaseDir = virGetUserConfigDirectory()))
|
cfg->configBaseDir = virGetUserConfigDirectory();
|
||||||
return NULL;
|
|
||||||
|
|
||||||
cfg->libDir = g_strdup_printf("%s/qemu/lib", cfg->configBaseDir);
|
cfg->libDir = g_strdup_printf("%s/qemu/lib", cfg->configBaseDir);
|
||||||
cfg->saveDir = g_strdup_printf("%s/qemu/save", cfg->configBaseDir);
|
cfg->saveDir = g_strdup_printf("%s/qemu/save", cfg->configBaseDir);
|
||||||
|
Loading…
Reference in New Issue
Block a user