Fixed a minor case which resulted in a core dump.

This commit is contained in:
Harry Moffat 2006-06-13 00:19:00 +00:00
parent 68ba6e635b
commit 092ee39483

View file

@ -535,9 +535,11 @@ namespace Cantera {
XML_Node& root = phase.root();
XML_Node* local_db = 0;
if (root.child("ctml").hasChild("elementData")) {
if (root.hasChild("ctml")) {
if (root.child("ctml").hasChild("elementData")) {
local_db = &root.child("ctml/elementData");
}
}
}
int nel = static_cast<int>(enames.size());
int i;