Fixed an error where Cantera would seg fault if errors in the

XML file occurred.
This commit is contained in:
Harry Moffat 2005-07-30 21:49:23 +00:00
parent 89597b36ac
commit 9cfa1faf5e

View file

@ -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;
}