mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
config: csd: error out on invalid key
This commit is contained in:
parent
3bc6db1e8c
commit
18313dcbec
1 changed files with 6 additions and 0 deletions
6
config.c
6
config.c
|
|
@ -413,6 +413,12 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
|
|||
conf->csd.color.close_set = true;
|
||||
conf->csd.color.close = color;
|
||||
}
|
||||
|
||||
else {
|
||||
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue