missing init

This commit is contained in:
Denis 2023-11-26 21:27:33 +01:00
parent dd1fbee754
commit f97c609c7c
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -11,6 +11,8 @@ int fill_config(controller_settings_t *const conf, const char* file) {
config_t cfg;
config_init(&cfg);
const int config_read_res = config_read_file(&cfg, file);
if (config_read_res != CONFIG_TRUE) {
fprintf(stderr, "Error in reading config file: %s\n", config_error_text(&cfg));