mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
config: survive parsing error
It is no good crashing on an rc.xml syntax error, particularly on a SIGHUP when the user could have applications open.
This commit is contained in:
parent
73b8f06a26
commit
f8e1d76333
1 changed files with 2 additions and 2 deletions
|
|
@ -383,8 +383,8 @@ rcxml_parse_xml(struct buf *b)
|
||||||
{
|
{
|
||||||
xmlDoc *d = xmlParseMemory(b->buf, b->len);
|
xmlDoc *d = xmlParseMemory(b->buf, b->len);
|
||||||
if (!d) {
|
if (!d) {
|
||||||
wlr_log(WLR_ERROR, "xmlParseMemory()");
|
wlr_log(WLR_ERROR, "error parsing config file");
|
||||||
exit(EXIT_FAILURE);
|
return;
|
||||||
}
|
}
|
||||||
xml_tree_walk(xmlDocGetRootElement(d));
|
xml_tree_walk(xmlDocGetRootElement(d));
|
||||||
xmlFreeDoc(d);
|
xmlFreeDoc(d);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue