config parser: explicitly skip over comments
This commit is contained in:
parent
27a383cfa7
commit
d814aa754f
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ lif_config_parse_file(FILE *fd, const char *filename, struct lif_config_handler
|
||||||
if (!*key || !*value)
|
if (!*key || !*value)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (*key == '#')
|
||||||
|
continue;
|
||||||
|
|
||||||
struct lif_config_handler *hdl = bsearch(key, handlers, handler_count, sizeof(*handlers),
|
struct lif_config_handler *hdl = bsearch(key, handlers, handler_count, sizeof(*handlers),
|
||||||
handler_cmp);
|
handler_cmp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue