* heap.h (inheap): Check for NULL.

This commit is contained in:
Christopher Faylor
2001-10-05 04:36:14 +00:00
parent 8d817b0f9e
commit f978840bee
5 changed files with 13 additions and 2 deletions

View File

@ -15,5 +15,5 @@ void heap_init ();
void malloc_init ();
#define inheap(s) \
(cygheap->heapptr && ((char *) (s) >= (char *) cygheap->heapbase) \
(cygheap->heapptr && s && ((char *) (s) >= (char *) cygheap->heapbase) \
&& ((char *) (s) <= (char *) cygheap->heaptop))