config: csd: error out on invalid key

This commit is contained in:
Daniel Eklöf 2020-03-08 14:08:48 +01:00
parent 3bc6db1e8c
commit 18313dcbec
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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