mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix broken logic and possible NULL pointer dereference for Bundle XML.
This commit is contained in:
parent
26f6f80a53
commit
c4c7598adb
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue