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:
parent
abd80d0f64
commit
28c6305fab
|
@ -78,8 +78,8 @@ Manager::add_port (const XMLNode& node)
|
||||||
operation.
|
operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((desc.mode == O_RDWR && port->mode() != O_RDWR) ||
|
if ((desc.mode == O_RDWR && (*p)->mode() != O_RDWR) ||
|
||||||
(desc.mode != O_RDWR && port->mode() == O_RDWR)) {
|
(desc.mode != O_RDWR && (*p)->mode() == O_RDWR)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user