diff options
| author | Soikk | 2025-10-26 16:42:56 +0100 |
|---|---|---|
| committer | Soikk | 2025-10-26 16:42:56 +0100 |
| commit | e5f259a3863e8d73c9aa8975bc757579d518963d (patch) | |
| tree | 689dd999aa4b33c99135f772f280aabdfe8d71f3 /src/config/config.c | |
| parent | f5b1ec5aefa643ce7b474fde33bb56fc535d8a26 (diff) | |
| download | soikk-server-e5f259a3863e8d73c9aa8975bc757579d518963d.tar.xz soikk-server-e5f259a3863e8d73c9aa8975bc757579d518963d.tar.zst | |
Various changed related to config
Diffstat (limited to 'src/config/config.c')
| -rw-r--r-- | src/config/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c index 0c602bc..c90364f 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -126,6 +126,10 @@ config_m master_config(char *filename){ config_w worker_config(char *filename){ config_w conf = {0}; conf.file = map_file(filename); + if(conf.file.ptr == NULL){ + log_error("Unable to open config file '%s'", filename); + return conf; + } init_nlist(conf.files); int off = 0; while(off < conf.file.len){ |
