summaryrefslogtreecommitdiff
path: root/src/core/channels-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/channels-setup.c')
-rw-r--r--src/core/channels-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/channels-setup.c b/src/core/channels-setup.c
index a53bd3f3..e434cd9c 100644
--- a/src/core/channels-setup.c
+++ b/src/core/channels-setup.c
@@ -158,7 +158,8 @@ static void channels_read_config(void)
/* Read channels */
node = iconfig_node_traverse("channels", FALSE);
if (node != NULL) {
- for (tmp = node->value; tmp != NULL; tmp = tmp->next)
+ tmp = config_node_first(node->value);
+ for (; tmp != NULL; tmp = config_node_next(tmp))
channel_setup_read(tmp->data);
}
}