c2s fix: initialise root config structure even if no config file is specified

This commit is contained in:
yrutschle 2019-03-09 11:36:24 +01:00
parent 7baf7f724c
commit 5a213c9650
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
* on Fri Feb 8 22:36:20 2019. */
* on Sat Mar 9 11:35:00 2019. */
#define _GNU_SOURCE
#include <string.h>
@ -547,6 +547,8 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) {
return 0;
}
sslhcfg_init(cfg);
if (sslhcfg_conffile->count) {
if (!sslhcfg_parse_file(sslhcfg_conffile->filename[0], cfg, &errmsg)) {
fprintf(stderr, "%s\n", errmsg);

View File

@ -1,5 +1,5 @@
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
* on Fri Feb 8 22:36:20 2019. */
* on Sat Mar 9 11:35:00 2019. */
#ifndef C2S_SSLHCFG_H
#define C2S_SSLHCFG_H