Check for missing "constants" config section

This commit is contained in:
Vftdan 2024-08-16 11:55:10 +02:00
parent 5946bf2bcd
commit 820480cc8a
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ load_channels_section(const config_setting_t *config_section, const ConstantRegi
static void
load_constants_section(const config_setting_t *config_section, ConstantRegistry *constants)
{
if (!config_section) {
return;
}
ssize_t length = config_setting_length(config_section);
if (length <= 0) {
return;