From 63781472fa1d49d14a17920c5e9eb0d73af537ad Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 16 Mar 2021 22:07:19 +0100 Subject: [PATCH] Bugfix for config post processing --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 89e3024..5b52e94 100644 --- a/src/config.c +++ b/src/config.c @@ -177,7 +177,7 @@ int config_load(const char *filename) { } free(conf); - for (int j = 0; j < i - 1; j++) { + for (int j = 0; j < i; j++) { if (tmp_config[j].type == CONFIG_TYPE_LOCAL) { char *webroot = tmp_config[j].local.webroot; if (webroot[strlen(webroot) - 1] == '/') {