try to fix seg fault when generating netlist

This commit is contained in:
charras 2009-07-20 17:00:55 +00:00
parent c4edb215fa
commit a3cb1774f4
1 changed files with 2 additions and 0 deletions

View File

@ -728,6 +728,8 @@ static void EraseDuplicatePins( NETLIST_OBJECT_LIST& aPinList )
int idxref = ii;
for( unsigned jj = ii + 1; jj < aPinList.size(); jj++ )
{
if ( aPinList[jj] == NULL ) // Already removed
continue;
if( aPinList[idxref]->m_PinNum != aPinList[jj]->m_PinNum )
break;
if ( aPinList[idxref]->m_FlagOfConnection == PAD_CONNECT )