mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +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:
parent
cb1560a66a
commit
bee366a9ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user