Fixed an error where Cantera would seg fault if errors in the
XML file occurred.
This commit is contained in:
parent
89597b36ac
commit
9cfa1faf5e
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ namespace ctml {
|
|||
|
||||
XML_Node* getByTitle(XML_Node& node, string title) {
|
||||
XML_Node* s = node.findByAttr("title",title);
|
||||
if (!s) return 0;
|
||||
if (s->parent() == &node) return s;
|
||||
else return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue