kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 603e353eab69b7c1a93828511f45c30a483d67b5
parent cd35c10224d97ccd2cd13125428cc240012ca069
Author: Joris Vink <joris@coders.se>
Date:   Thu,  7 May 2015 20:34:25 +0200

Merge pull request #46 from thorduri/config

Continue on terminating '}' in a config stanza.
Diffstat:
src/config.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/config.c b/src/config.c @@ -209,6 +209,11 @@ kore_parse_config_file(char *fpath) if (!strcmp(p, "}") && current_domain != NULL) domain_sslstart(); + if (!strcmp(p, "}")) { + lineno++; + continue; + } + kore_split_string(p, " ", argv, 5); for (i = 0; config_names[i].name != NULL; i++) { if (!strcmp(config_names[i].name, argv[0])) { @@ -221,7 +226,7 @@ kore_parse_config_file(char *fpath) } if (config_names[i].name == NULL) { - printf("unknown configuration option on line %d\n", + printf("unknown configuration option \"%s\" on line %d\n", p, lineno); }