diff options
author | pommicket <pommicket@gmail.com> | 2022-02-23 22:37:01 -0800 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-02-23 22:37:01 -0800 |
commit | c75af0c8e5fdf7792081f03ca8a01764953b19a4 (patch) | |
tree | 811fcdb32086c0b5b4a41f18031c8fcde65ca4b6 /05/musl-0.6.0/src/malloc | |
parent | 9bc8a11afeed3569736b89754012e3ca22ee10f6 (diff) |
coda
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) { |