diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-10-29 20:35:39 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-10-29 20:35:39 +0000 |
| commit | f3f639a106a17c4271746a977001029abc45a90b (patch) | |
| tree | f20e116027e6436b8e62f88e72c54a8c95fe87f8 /lib/libc/stdlib/malloc.c | |
| parent | 627199df426518c918a99a84d8c44171e9d4f659 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
| -rw-r--r-- | lib/libc/stdlib/malloc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 3dc838ec2afe..b1cdb2532888 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: malloc.c,v 1.16 1996/10/20 13:20:57 phk Exp $ + * $Id: malloc.c,v 1.17 1996/10/26 08:19:07 phk Exp $ * */ @@ -43,9 +43,11 @@ * It's probably best if this is the native * page size, but it shouldn't have to be. * - * malloc_minsize minimum size of an allocation + * malloc_minsize minimum size of an allocation in bytes. * If this is too small it's too much work - * to manage them. + * to manage them. This is also the smallest + * unit of alignment used for the storage + * returned by malloc/realloc. * */ @@ -737,7 +739,7 @@ imalloc(size_t size) if (malloc_abort && !result) wrterror("allocation failed.\n"); - if (malloc_zero) + if (malloc_zero && result) memset(result, 0, size); return result; |
