Skip to content

Commit e74f688

Browse files
committed
parse empty lines
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
1 parent 54d1051 commit e74f688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parse_config.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ bool parse_config_line(char *line, mapping_list_t *list,
205205
mapping_t *existing_mapping, new_mapping;
206206

207207
buffer[0] = '\0';
208-
token = strtok_r(line, " \t", &next_token);
208+
token = strtok_r(line, " \t\n", &next_token);
209209
while (token != NULL) {
210210
switch (state) {
211211
case STATE_INIT:
@@ -458,6 +458,7 @@ bool parse_config_line(char *line, mapping_list_t *list,
458458
dump_mapping_list(list);
459459
break;
460460

461+
case STATE_INIT:
461462
case STATE_MAP:
462463
break;
463464

0 commit comments

Comments
 (0)