diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-08 13:08:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-08 13:08:48 +0000 |
| commit | 18313dcbec4602f748fc925c285ec97ae6ddda04 (patch) | |
| tree | 0d15ee932d31b85d6690d6ced6b5141650516b11 | |
| parent | scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutil (diff) | |
config: csd: error out on invalid key
| -rw-r--r-- | config.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |
