13
0

fix for first of taybin's 2 problems - do not use uninitialized Port* in check on existing devices

git-svn-id: svn://localhost/ardour2/branches/3.0@6307 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-12-06 03:02:45 +00:00
parent abd80d0f64
commit 28c6305fab

View File

@ -78,8 +78,8 @@ Manager::add_port (const XMLNode& node)
operation.
*/
if ((desc.mode == O_RDWR && port->mode() != O_RDWR) ||
(desc.mode != O_RDWR && port->mode() == O_RDWR)) {
if ((desc.mode == O_RDWR && (*p)->mode() != O_RDWR) ||
(desc.mode != O_RDWR && (*p)->mode() == O_RDWR)) {
break;
}
}