mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: Don't check the output of virGetUserDirectory()
virGetUserDirectory() *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
a4aaed6165
commit
d0e1c6a6ae
@ -118,9 +118,6 @@ qemuInteropFetchConfigs(const char *name,
|
||||
if (!xdgConfig) {
|
||||
g_autofree char *home = virGetUserDirectory();
|
||||
|
||||
if (!home)
|
||||
return -1;
|
||||
|
||||
xdgConfig = g_strdup_printf("%s/.config", home);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user