diff options
author | onefang | 2020-02-27 17:07:48 +1000 |
---|---|---|
committer | onefang | 2020-02-27 17:07:48 +1000 |
commit | 2f66c46e7ce18d60cd1f565880fb7762b3399ccb (patch) | |
tree | e7d043c5297a81d8d4b6f91dd3e63ee7528cfa95 /src | |
parent | The new sledjchisl binary, to replace the management scripts and web stuff. (diff) | |
download | opensim-SC-2f66c46e7ce18d60cd1f565880fb7762b3399ccb.zip opensim-SC-2f66c46e7ce18d60cd1f565880fb7762b3399ccb.tar.gz opensim-SC-2f66c46e7ce18d60cd1f565880fb7762b3399ccb.tar.bz2 opensim-SC-2f66c46e7ce18d60cd1f565880fb7762b3399ccb.tar.xz |
Bitch if we can't read the OpenSim config file.
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sledjchisl.c b/src/sledjchisl.c index df24ad7..dd386f0 100644 --- a/src/sledjchisl.c +++ b/src/sledjchisl.c | |||
@@ -882,6 +882,11 @@ jit library is loaded or the JIT compiler will not be activated. | |||
882 | snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot); | 882 | snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot); |
883 | 883 | ||
884 | qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '='); | 884 | qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '='); |
885 | if (NULL == qconfig) | ||
886 | { | ||
887 | E("Can't read config file %s", toybuf); | ||
888 | goto finished; | ||
889 | } | ||
885 | d = qstrunchar(qconfig->getstr(qconfig, "Const.ConnectionString", false), '"', '"'); | 890 | d = qstrunchar(qconfig->getstr(qconfig, "Const.ConnectionString", false), '"', '"'); |
886 | 891 | ||
887 | if (NULL == d) | 892 | if (NULL == d) |