13
0

Fix broken logic and possible NULL pointer dereference for Bundle XML.

This commit is contained in:
David Robillard 2014-11-18 02:25:02 -05:00
parent 26f6f80a53
commit c4c7598adb

View File

@ -854,6 +854,7 @@ IO::get_port_counts (const XMLNode& node, int version, ChanCount& n, boost::shar
for (iter = node.children().begin(); iter != node.children().end(); ++iter) {
if ((*iter)->name() == X_("Bundle")) {
prop = (*iter)->property ("name");
if ((c = find_possible_bundle (prop->value())) != 0) {
n = ChanCount::max (n, c->nchannels());
return 0;