mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-29 20:11:16 +00:00
remote: 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
4dc0a51bac
commit
7f5de0672b
@ -81,8 +81,7 @@ daemonConfigFilePath(bool privileged, char **configfile)
|
|||||||
} else {
|
} else {
|
||||||
g_autofree char *configdir = NULL;
|
g_autofree char *configdir = NULL;
|
||||||
|
|
||||||
if (!(configdir = virGetUserConfigDirectory()))
|
configdir = virGetUserConfigDirectory();
|
||||||
return -1;
|
|
||||||
|
|
||||||
*configfile = g_strdup_printf("%s/%s.conf", configdir, DAEMON_NAME);
|
*configfile = g_strdup_printf("%s/%s.conf", configdir, DAEMON_NAME);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user