fix comment bug
comments not at the beginning of the line are no longer ignored
This commit is contained in:
parent
514407015e
commit
5db72c0b43
4
hkd.c
4
hkd.c
@ -634,6 +634,10 @@ void parse_config_file (void)
|
|||||||
free(line);
|
free(line);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
for (size_t i = 1; i < linelen; i++) {
|
||||||
|
if (line[i] == '#')
|
||||||
|
line[i] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: multiline commands, ending with "\\n"
|
// TODO: multiline commands, ending with "\\n"
|
||||||
// TODO: better error checks in order to remove unnecessary
|
// TODO: better error checks in order to remove unnecessary
|
||||||
|
Loading…
Reference in New Issue
Block a user