diff options
author | David Robillard <d@drobilla.net> | 2014-11-18 02:25:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-18 02:53:28 -0500 |
commit | c4c7598adbc9e5eca5fe04a23bb7e88fc0989f34 (patch) | |
tree | 448573b11f550fd13bc66c24e168d695bdce6efd /libs | |
parent | 26f6f80a53307569c95a732a0304215376d8bc5f (diff) |
Fix broken logic and possible NULL pointer dereference for Bundle XML.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/io.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 2cc213f797..333b0b1ea0 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -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; |