diff options
Diffstat (limited to '05/musl-0.6.0/src/malloc')
-rw-r--r-- | 05/musl-0.6.0/src/malloc/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/05/musl-0.6.0/src/malloc/malloc.c b/05/musl-0.6.0/src/malloc/malloc.c index d9a30fe..29f9760 100644 --- a/05/musl-0.6.0/src/malloc/malloc.c +++ b/05/musl-0.6.0/src/malloc/malloc.c @@ -324,7 +324,7 @@ void *malloc(size_t n) { struct chunk *c; int i, j; - +if (n == 0) n = 1;/* everyone depends on this behavior for some fucking reason */ if (!n || adjust_size(&n) < 0) return 0; if (n > MMAP_THRESHOLD) { |