More robust rc.xml parsing

This commit is contained in:
Consolatis 2022-01-06 03:24:32 +01:00 committed by Johan Malm
parent dc203a28e9
commit 2b82bdcdb7
2 changed files with 44 additions and 16 deletions

View file

@ -116,6 +116,7 @@ fill_item(char *nodename, char *content)
/* <item label=""> defines the start of a new item */
if (!strcmp(nodename, "label")) {
current_item = item_create(current_menu, content);
current_item_action = NULL;
} else if (!current_item) {
wlr_log(WLR_ERROR, "expect <item label=\"\"> element first. "
"nodename: '%s' content: '%s'", nodename, content);