void *calloc(size_t nmemb, size_t size) {
size_t total_size = nmemb * size;
void *calloc(size_t nmemb, size_t size) {
size_t total_size = nmemb * size;
void *ret = mmalloc(__mmalloc_current_heap, total_size);
/* Fill the allocated memory with zeroes to mimic calloc behaviour */
void *ret = mmalloc(__mmalloc_current_heap, total_size);
/* Fill the allocated memory with zeroes to mimic calloc behaviour */
- if (p)
- ret = mrealloc(__mmalloc_current_heap, p,s);
- else
- ret = mmalloc(__mmalloc_current_heap,s);
+ if (p)
+ ret = mrealloc(__mmalloc_current_heap, p,s);
+ else
+ ret = mmalloc(__mmalloc_current_heap,s);