diff options
Diffstat (limited to 'src/malloc/lite_malloc.c')
-rw-r--r-- | src/malloc/lite_malloc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/malloc/lite_malloc.c b/src/malloc/lite_malloc.c index c3f0c129..f8931ba5 100644 --- a/src/malloc/lite_malloc.c +++ b/src/malloc/lite_malloc.c @@ -101,14 +101,3 @@ static void *__simple_malloc(size_t n) } weak_alias(__simple_malloc, malloc); - -static void *__simple_calloc(size_t m, size_t n) -{ - if (n && m > (size_t)-1/n) { - errno = ENOMEM; - return 0; - } - return __simple_malloc(n * m); -} - -weak_alias(__simple_calloc, calloc); |