1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

tools: Don't check the output of virGetUserCacheDirectory()

virGetUserCacheDirectory() *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:
Fabiano Fidêncio 2019-12-19 09:45:52 +01:00
parent cb1560a66a
commit bee366a9ca

View File

@ -2913,11 +2913,6 @@ vshReadlineInit(vshControl *ctl)
*/ */
userdir = virGetUserCacheDirectory(); userdir = virGetUserCacheDirectory();
if (userdir == NULL) {
vshError(ctl, "%s", _("Could not determine home directory"));
goto cleanup;
}
ctl->historydir = g_strdup_printf("%s/%s", userdir, ctl->name); ctl->historydir = g_strdup_printf("%s/%s", userdir, ctl->name);
ctl->historyfile = g_strdup_printf("%s/history", ctl->historydir); ctl->historyfile = g_strdup_printf("%s/history", ctl->historydir);