From: Fabiano Fidêncio Date: Thu, 19 Dec 2019 08:45:52 +0000 (+0100) Subject: tools: Don't check the output of virGetUserCacheDirectory() X-Git-Tag: v6.0.0-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee366a9ca8a9f8eb490fd199fed74af81cfc56d;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Ján Tomko --- diff --git a/tools/vsh.c b/tools/vsh.c index bbb6227130..b982aeb359 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2913,11 +2913,6 @@ vshReadlineInit(vshControl *ctl) */ 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->historyfile = g_strdup_printf("%s/history", ctl->historydir);