Make Coverity happy.

This commit is contained in:
Jeff Young 2021-10-19 11:20:10 +01:00
parent 916710ce19
commit 75b5bcf46d
1 changed files with 2 additions and 2 deletions

View File

@ -2239,7 +2239,7 @@ bool CONNECTION_GRAPH::ercCheckMultipleDrivers( const CONNECTION_SUBGRAPH* aSubg
* across this in 7.0 development (or later), feel free to delete.
*/
#if 0
if( aSubgraph->m_second_driver )
if( aSubgraph && aSubgraph->m_second_driver )
{
SCH_ITEM* primary = aSubgraph->m_first_driver;
SCH_ITEM* secondary = aSubgraph->m_second_driver;
@ -2265,7 +2265,7 @@ bool CONNECTION_GRAPH::ercCheckMultipleDrivers( const CONNECTION_SUBGRAPH* aSubg
return false;
}
#else
if( aSubgraph->m_multiple_drivers )
if( aSubgraph && aSubgraph->m_multiple_drivers )
{
for( SCH_ITEM* driver : aSubgraph->m_drivers )
{