aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-17 08:24:28 +0000
committerNick Clifton <nickc@redhat.com>2005-03-17 08:24:28 +0000
commit36868d45f8ffc3016b179b403bd6ba2edc224f68 (patch)
tree80e886c9d44a79188d11ef65628eea776fcd569c /bfd/dwarf2.c
parent05f83022adcb1769a2c6dc3d75af1c2d21d64e39 (diff)
downloadfsf-binutils-gdb-36868d45f8ffc3016b179b403bd6ba2edc224f68.zip
fsf-binutils-gdb-36868d45f8ffc3016b179b403bd6ba2edc224f68.tar.gz
fsf-binutils-gdb-36868d45f8ffc3016b179b403bd6ba2edc224f68.tar.bz2
(read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation,
not dwarf_abbrev_buffer.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index fb5cf9f..2bd232d 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -301,7 +301,7 @@ read_indirect_string (struct comp_unit* unit,
sz = msec->rawsize ? msec->rawsize : msec->size;
stash->dwarf_str_size = sz;
stash->dwarf_str_buffer = bfd_alloc (abfd, sz);
- if (! stash->dwarf_abbrev_buffer)
+ if (! stash->dwarf_str_buffer)
return NULL;
if (! bfd_get_section_contents (abfd, msec, stash->dwarf_str_buffer,