blob: c23c3cc46db8af2ac76d7a446442070c567d4c71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.1 2002/07/03 10:59:48 jdolecek 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 */
|