diff options
author | jdolecek <jdolecek> | 2002-07-03 10:59:47 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2002-07-03 10:59:47 +0000 |
commit | 289d68a1ab7ea913eec7fb247c4dafc9dc4e1dec (patch) | |
tree | e8fb5467c7c360d9945489f1a50b42632481b928 /devel/rvm/patches | |
parent | eb86a94eaff0bf844d9bdb1c2b16452a8e92e37e (diff) | |
download | pkgsrc-289d68a1ab7ea913eec7fb247c4dafc9dc4e1dec.tar.gz |
Fix one place in rvm library where code implicitly assumed malloc()
returns zeroed data. Discovered by using MALLOC_OPTIONS=J.
coda-server's vice-setup-rvm runs to completition for me with this patch
finally!
bump pkg revision to nb1
Diffstat (limited to 'devel/rvm/patches')
-rw-r--r-- | devel/rvm/patches/patch-ab | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/rvm/patches/patch-ab b/devel/rvm/patches/patch-ab new file mode 100644 index 00000000000..c23c3cc46db --- /dev/null +++ b/devel/rvm/patches/patch-ab @@ -0,0 +1,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 */ + |