blob: a37084a2fe1754a03ddacbd58a318fe1027a2194 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.2 2002/08/25 18:38:51 jlam Exp $
--- rvm/rvm_utils.c.orig Wed Jul 3 12:39:26 2002
+++ rvm/rvm_utils.c Wed Jul 3 12:40:30 2002
@@ -106,7 +106,7 @@ static list_entry_t *malloc_list_entry(i
/* allocate the element */
cell = (list_entry_t *)
- malloc((unsigned)cache_type_sizes[ID_INDEX(id)]);
+ calloc(1, (unsigned)cache_type_sizes[ID_INDEX(id)]);
assert(cell != NULL);
type_counts[ID_INDEX(id)] ++; /* count allocations */
|