Check for missing "constants" config section
This commit is contained in:
parent
5946bf2bcd
commit
820480cc8a
3
config.c
3
config.c
|
@ -126,6 +126,9 @@ load_channels_section(const config_setting_t *config_section, const ConstantRegi
|
||||||
static void
|
static void
|
||||||
load_constants_section(const config_setting_t *config_section, ConstantRegistry *constants)
|
load_constants_section(const config_setting_t *config_section, ConstantRegistry *constants)
|
||||||
{
|
{
|
||||||
|
if (!config_section) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ssize_t length = config_setting_length(config_section);
|
ssize_t length = config_setting_length(config_section);
|
||||||
if (length <= 0) {
|
if (length <= 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue