diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-13 00:33:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-13 00:33:30 +0000 |
commit | 3f549ec2791de2c021fdbb680bcbf7083736b70f (patch) | |
tree | 6ee96f05ed6f6befa0abc83b368ad4bee80e79e5 /libc/stdlib | |
parent | 314b6a528c9756572e855389c6cb09c18a558747 (diff) |
Use MAP_FAILED.
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/malloc-simple/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c index f278a9583..ed1c381a5 100644 --- a/libc/stdlib/malloc-simple/alloc.c +++ b/libc/stdlib/malloc-simple/alloc.c @@ -74,7 +74,7 @@ void *malloc(size_t len) #endif ); - if (result == (void *) -1) + if (result == MAP_FAILED) return 0; return result; |