summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows-layout.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-02 17:37:44 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-02 17:37:44 +0000
commit0ce3f8243eb564063c66a1b32169109af17e4081 (patch)
tree834275a5cb412c07efafc83a2f180e3cf5d697d0 /src/fe-text/mainwindows-layout.c
parent85b63bf5465f4cc6d2fd1472cb9e87c5b6719f63 (diff)
downloadirssi-0ce3f8243eb564063c66a1b32169109af17e4081.zip
Comments are now allowed everywhere in config files.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows-layout.c')
-rw-r--r--src/fe-text/mainwindows-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c
index d3df6b86..072b9b2c 100644
--- a/src/fe-text/mainwindows-layout.c
+++ b/src/fe-text/mainwindows-layout.c
@@ -99,7 +99,8 @@ static GSList *get_sorted_windows_config(CONFIG_NODE *node)
GSList *tmp, *output;
output = NULL;
- for (tmp = node->value; tmp != NULL; tmp = tmp->next) {
+ tmp = config_node_first(node->value);
+ for (; tmp != NULL; tmp = config_node_next(tmp)) {
output = g_slist_insert_sorted(output, tmp->data,
(GCompareFunc) window_node_cmp);
}