summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar-config.c
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-12-21 15:28:17 +0100
committerGitHub <noreply@github.com>2016-12-21 15:28:17 +0100
commit07050e2a3cca9688dde42a38ba4f76b02e7eed8c (patch)
tree3ea91f6f03904932ef1bbbd9a999d07b1c7860d4 /src/fe-text/statusbar-config.c
parent1c6695107c09e8861a696d66b029e7df62589fcd (diff)
parent59242cb595716bf34966ee71aca81e0c9a2a5284 (diff)
downloadirssi-07050e2a3cca9688dde42a38ba4f76b02e7eed8c.zip
Merge pull request #587 from ailin-nemui/sbar_crash
add assertion to statusbar_read_group
Diffstat (limited to 'src/fe-text/statusbar-config.c')
-rw-r--r--src/fe-text/statusbar-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/statusbar-config.c b/src/fe-text/statusbar-config.c
index a47a709e..48f4aa61 100644
--- a/src/fe-text/statusbar-config.c
+++ b/src/fe-text/statusbar-config.c
@@ -194,6 +194,8 @@ static void statusbar_read_group(CONFIG_NODE *node)
STATUSBAR_GROUP_REC *group;
GSList *tmp;
+ g_return_if_fail(is_node_list(node));
+
group = statusbar_group_find(node->key);
if (group == NULL) {
group = statusbar_group_create(node->key);