aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:33:30 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:33:30 +0000
commit3a9a2bb6a4f7797f64bc4a611a739ac922b078b0 (patch)
treebf37d2a671c5eab97e0697b6aaedc42d5b006da6
parentrender: remember, and use, last unmaximized size (diff)
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.
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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;
}