diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-05 08:36:14 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-05 08:36:14 +0400 |
commit | f978840beefd9d0ac3fb9a26f5440eb9b20584c9 (patch) | |
tree | ac07b9b2fca5cd42e307f418811663f85aefa9b7 /winsup/cygwin/heap.h | |
parent | 8d817b0f9ed20cfa5e9482074999c2973a2a9543 (diff) |
* heap.h (inheap): Check for NULL.
Diffstat (limited to 'winsup/cygwin/heap.h')
-rw-r--r-- | winsup/cygwin/heap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/heap.h b/winsup/cygwin/heap.h index df652ac22..bcea4bae0 100644 --- a/winsup/cygwin/heap.h +++ b/winsup/cygwin/heap.h @@ -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)) |