configfile: multiple tuple per line
This commit is contained in:
parent
cc227cc7cc
commit
a1c55be85e
@ -123,9 +123,12 @@ int config_parse(char *config)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tok = strtok(row, " \n")) && (tok2 = strtok(NULL, " \n")))
|
if ((tok = strtok(row, " \n"))) {
|
||||||
if (!config_add_tupel(section, tok, tok2))
|
while ((tok2 = strtok(NULL, " \n"))) {
|
||||||
log_print(LOG_WARN, "config_parse(): invalid row %d", i);
|
if (!config_add_tupel(section, tok, tok2))
|
||||||
|
log_print(LOG_WARN, "config_parse(): invalid row %d", i);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fz);
|
fclose(fz);
|
||||||
|
Loading…
Reference in New Issue
Block a user