From b9e9738e4a438b2918af49e7d871d64303b1b51f Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Thu, 17 Jun 1999 13:26:08 +0000 Subject: * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc. * (alloc_dwarf1_func): Likewise. --- bfd/dwarf1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bfd/dwarf1.c') diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c index cbcc26b003..d87df92c10 100644 --- a/bfd/dwarf1.c +++ b/bfd/dwarf1.c @@ -140,8 +140,8 @@ alloc_dwarf1_unit (stash) struct dwarf1_debug* stash; { struct dwarf1_unit* x = - (struct dwarf1_unit*) bfd_alloc (stash->abfd, - sizeof (struct dwarf1_unit)); + (struct dwarf1_unit*) bfd_zalloc (stash->abfd, + sizeof (struct dwarf1_unit)); x->prev = stash->lastUnit; stash->lastUnit = x; @@ -157,8 +157,8 @@ alloc_dwarf1_func (stash, aUnit) struct dwarf1_unit* aUnit; { struct dwarf1_func* x = - (struct dwarf1_func*) bfd_alloc (stash->abfd, - sizeof (struct dwarf1_func)); + (struct dwarf1_func*) bfd_zalloc (stash->abfd, + sizeof (struct dwarf1_func)); x->prev = aUnit->func_list; aUnit->func_list = x; -- cgit v1.2.1