mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
More robust rc.xml parsing
This commit is contained in:
parent
dc203a28e9
commit
2b82bdcdb7
2 changed files with 44 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue