diff options
Diffstat (limited to 'src/malloc/__simple_malloc.c')
-rw-r--r-- | src/malloc/__simple_malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/__simple_malloc.c b/src/malloc/__simple_malloc.c index c029342c..c8293908 100644 --- a/src/malloc/__simple_malloc.c +++ b/src/malloc/__simple_malloc.c @@ -15,7 +15,7 @@ void *__simple_malloc(size_t n) static int lock; size_t align=1; - if (!n) return 0; + if (!n) n++; if (n > SIZE_MAX/2) goto toobig; while (align<n && align<ALIGN) |