From 0ae4617870c270b4f54e10a2fa0919daae9270d8 Mon Sep 17 00:00:00 2001 From: Vftdan Date: Fri, 16 Aug 2024 10:08:38 +0200 Subject: [PATCH] Fix typos in config loading code --- config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.c b/config.c index df3cd33..361ed65 100644 --- a/config.c +++ b/config.c @@ -14,7 +14,7 @@ load_single_node_config(const config_setting_t *config_member) } result.name = config_setting_name(config_member); if (!result.name) { - config_setting_lookup_string(config_member, "namd", &result.name); + config_setting_lookup_string(config_member, "name", &result.name); } config_setting_lookup_string(config_member, "type", &result.type); result.options = config_setting_get_member(config_member, "options"); @@ -58,8 +58,8 @@ load_channel_end_config(const config_setting_t *config_member, const char **name if (!kv) { return; } - *name_ptr = config_setting_name(config_member); - *index_ptr = config_setting_get_int64(config_member); + *name_ptr = config_setting_name(kv); + *index_ptr = config_setting_get_int64(kv); return; } *name_ptr = config_setting_get_string_elem(config_member, 0);