virGetUserDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> --- src/qemu/qemu_interop_config.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/qemu/qemu_interop_config.c b/src/qemu/qemu_interop_config.c index cbabde45df..f5f419e630 100644 --- a/src/qemu/qemu_interop_config.c +++ b/src/qemu/qemu_interop_config.c @@ -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); } -- 2.24.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list