diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-02-10 22:00:36 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-02-10 22:00:36 +0000 |
| commit | b0b7518dd1fa45f59299d97b4b6f7b025c9abf7f (patch) | |
| tree | 99814bcdfb1e20aa6844c4dcb3984ff86616f208 /stm/malloc0.c | |
| parent | e8d2c3cf6cf835af79d09893a367f25d5ef487cd (diff) | |
| parent | 58ff93bc7c25d7d41dda28875f88652b260b9f13 (diff) | |
Merge pull request #270 from pfalcon/down-with-calloc
Get rid of calloc().
Diffstat (limited to 'stm/malloc0.c')
| -rw-r--r-- | stm/malloc0.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/stm/malloc0.c b/stm/malloc0.c index 7e3f620db..eaa436f4f 100644 --- a/stm/malloc0.c +++ b/stm/malloc0.c @@ -29,14 +29,6 @@ void *realloc(void *ptr, size_t n) { #endif -void *calloc(size_t sz, size_t n) { - char *ptr = malloc(sz * n); - for (int i = 0; i < sz * n; i++) { - ptr[i] = 0; - } - return ptr; -} - void *malloc(size_t n) { return gc_alloc(n); } |
