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.
This commit is contained in:
Daniel Eklöf 2020-02-28 18:33:30 +01:00
parent ddbfb3676c
commit 3a9a2bb6a4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;
}