aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/calloc.c')
-rw-r--r--com32/lib/calloc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/com32/lib/calloc.c b/com32/lib/calloc.c
index ebab49bf..97659b16 100644
--- a/com32/lib/calloc.c
+++ b/com32/lib/calloc.c
@@ -9,12 +9,5 @@
void *calloc(size_t nmemb, size_t size)
{
- void *ptr;
-
- size *= nmemb;
- ptr = malloc(size);
- if ( ptr )
- memset(ptr, 0, size);
-
- return ptr;
+ return zalloc(size*nmemb);
}