From d05fe039e1009822254964c0c7ff141f7008b61f Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 13 Sep 2018 11:47:38 +0300 Subject: Suggested bug fix in 'amap'. --- src/map/amap/amapLib.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3