Mercurial > flash_v2
diff packages/services/memalloc/common/current/src/malloc.cxx @ 138:289bf90c6a9b
Merge from eCos master repository on 2000-11-24-06:43:05-GMT
| author | jlarmour |
|---|---|
| date | Fri, 24 Nov 2000 07:49:02 +0000 |
| parents | 6ed91473a1cd |
| children | 3902ef905c9c |
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/src/malloc.cxx +++ b/packages/services/memalloc/common/current/src/malloc.cxx @@ -110,11 +110,13 @@ malloc( size_t size ) CYG_REPORT_FUNCARG1DV( size ); +#ifdef CYGSEM_MEMALLOC_MALLOC_ZERO_RETURNS_NULL // first check if size wanted is 0 if ( 0 == size ) { CYG_REPORT_RETVAL( NULL ); return NULL; } // if +#endif // ask the pool for the data data_ptr = POOL.try_alloc( size );
