diff options
-rw-r--r-- | src/map/amap/amapLib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/amap/amapLib.c b/src/map/amap/amapLib.c index b6350fed..26ef639f 100644 --- a/src/map/amap/amapLib.c +++ b/src/map/amap/amapLib.c @@ -242,8 +242,11 @@ Amap_Gat_t * Amap_LibFindGate( Amap_Lib_t * p, unsigned uTruth ) Amap_Gat_t * pGate; int i; Vec_PtrForEachEntry( Amap_Gat_t *, p->vSorted, pGate, i ) + { + if (( pGate == NULL ) || ( pGate->pFunc == NULL )) continue; if ( pGate->nPins <= 5 && pGate->pFunc[0] == uTruth ) return pGate; + } return NULL; } |