From 1900570fa3b95ed251f597cd2373bca27d95a74e Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 25 Aug 2021 18:49:35 +1000 Subject: Minor clean up. --- src/sledjchisl/sledjchisl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 2f0747b..2a45c19 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8360,7 +8360,6 @@ Build the OpenSim. // mimeTypes->putstr(mimeTypes, "markdown", "text/markdown"); mimeTypes->putstr(mimeTypes, "txt", "text/plain"); - snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot); //////////////////////////////////////////////////////////////////////////////////////////////////// // Connect to database. @@ -8369,6 +8368,7 @@ Build the OpenSim. // I doubt qLibc supports it, like it supports what seems to be the standard include system. // Not sure if we need to worry about it just yet. // TODO - this leaks memory, but it's a bug in qLibc. Send the bug fix upstream. + snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot); qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '='); if (NULL == qconfig) { -- cgit v1.1