From c75af0c8e5fdf7792081f03ca8a01764953b19a4 Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 23 Feb 2022 22:37:01 -0800 Subject: coda --- 05/musl-0.6.0/src/malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '05/musl-0.6.0/src/malloc') 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) { -- cgit v1.2.3