aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf1.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>1999-06-17 13:26:08 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>1999-06-17 13:26:08 +0000
commitaec89efbf6f3473ae4da83e25828d77e12f425c2 (patch)
tree9daf6b49bdc8099ca6ee62ac824ae84ee097bf5e /bfd/dwarf1.c
parent2f3519a231e9802cf9603601686d798268b4b17b (diff)
downloadgdb-aec89efbf6f3473ae4da83e25828d77e12f425c2.zip
gdb-aec89efbf6f3473ae4da83e25828d77e12f425c2.tar.gz
gdb-aec89efbf6f3473ae4da83e25828d77e12f425c2.tar.bz2
* dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
* (alloc_dwarf1_func): Likewise.
Diffstat (limited to 'bfd/dwarf1.c')
-rw-r--r--bfd/dwarf1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c
index cbcc26b..d87df92 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;