From 4cf99cae95c629b31d6d89c5dcea2eeb17654c85 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 6 Dec 2006 08:01:00 -0800 Subject: Version abc61206 --- src/misc/vec/vecInt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/misc/vec/vecInt.h') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 1973bd46..10918156 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -598,6 +598,9 @@ static inline int Vec_IntPushUnique( Vec_Int_t * p, int Entry ) ***********************************************************************/ static inline unsigned * Vec_IntFetch( Vec_Int_t * p, int nWords ) { + if ( nWords == 0 ) + return NULL; + assert( nWords > 0 ); p->nSize += nWords; if ( p->nSize > p->nCap ) { -- cgit v1.2.3