config parser: explicitly skip over comments

This commit is contained in:
Ariadne Conill 2020-09-15 05:48:54 -06:00
parent 27a383cfa7
commit d814aa754f

View file

@ -48,6 +48,9 @@ lif_config_parse_file(FILE *fd, const char *filename, struct lif_config_handler
if (!*key || !*value)
continue;
if (*key == '#')
continue;
struct lif_config_handler *hdl = bsearch(key, handlers, handler_count, sizeof(*handlers),
handler_cmp);