From 27b733a838613e6ae4d1587b1bb39b2e8d41a6da Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 17 Mar 2005 08:24:28 +0000 Subject: [PATCH] (read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation, not dwarf_abbrev_buffer. --- bfd/ChangeLog | 6 ++++++ bfd/dwarf2.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 606bb599a5..9e049e7a9c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2005-03-16 Fred Fish + + PR binutils/790 + * dwarf2.c (read_indirect_string): Fix apparent typo, check + dwarf_str_buffer allocation, not dwarf_abbrev_buffer. + 2005-03-16 H.J. Lu * elflink.c (elf_mark_used_section): New. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index fb5cf9f918..2bd232d9da 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, -- 2.11.0