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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/channels-setup.c b/src/core/channels-setup.c
index ac9b1c23..62d43b2c 100644
--- a/src/core/channels-setup.c
+++ b/src/core/channels-setup.c
@@ -38,7 +38,7 @@ static void channel_setup_save(CHANNEL_SETUP_REC *channel)
index = g_slist_index(setupchannels, channel);
parentnode = iconfig_node_traverse("(channels", TRUE);
- node = config_node_index(parentnode, index);
+ node = config_node_nth(parentnode, index);
if (node == NULL)
node = config_node_section(parentnode, NULL, NODE_TYPE_BLOCK);