summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/heap.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-05 04:36:14 +0000
committerChristopher Faylor <me@cgf.cx>2001-10-05 04:36:14 +0000
commitf978840beefd9d0ac3fb9a26f5440eb9b20584c9 (patch)
treeac07b9b2fca5cd42e307f418811663f85aefa9b7 /winsup/cygwin/heap.h
parent8d817b0f9ed20cfa5e9482074999c2973a2a9543 (diff)
downloadcygnal-f978840beefd9d0ac3fb9a26f5440eb9b20584c9.tar.gz
cygnal-f978840beefd9d0ac3fb9a26f5440eb9b20584c9.tar.bz2
cygnal-f978840beefd9d0ac3fb9a26f5440eb9b20584c9.zip
* heap.h (inheap): Check for NULL.
Diffstat (limited to 'winsup/cygwin/heap.h')
-rw-r--r--winsup/cygwin/heap.h2
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))