From 3a9a2bb6a4f7797f64bc4a611a739ac922b078b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 28 Feb 2020 18:33:30 +0100 Subject: [PATCH] config: add default font when using the default config When there is no configuration file, and we're using the default configuration, we accidentally jumped pasted the code that ensures we have at least "monospace" in the font list. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 7f23d7fe..63db806e 100644 --- a/config.c +++ b/config.c @@ -562,10 +562,10 @@ config_load(struct config *conf, const char *conf_path) ret = parse_config_file(f, conf, conf_path); fclose(f); +out: if (ret && tll_length(conf->fonts) == 0) tll_push_back(conf->fonts, strdup("monospace")); -out: free(default_path); return ret; }