From 40f3d4c24ccfd116a53120e36df796a959ca6499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 28 Feb 2020 18:35:05 +0100 Subject: [PATCH] terminal: error out when we fail to load the primary font --- terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index fe8860ad..9388d0d7 100644 --- a/terminal.c +++ b/terminal.c @@ -773,7 +773,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl, term_set_window_title(term, "foot"); /* Load fonts */ - term_font_dpi_changed(term); + if (!term_font_dpi_changed(term)) + goto err; /* Start the slave/client */ if ((term->slave = slave_spawn(term->ptmx, argc, term->cwd, argv, term_env, conf->shell, login_shell)) == -1)