From 36868d45f8ffc3016b179b403bd6ba2edc224f68 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 17 Mar 2005 08:24:28 +0000 Subject: (read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation, not dwarf_abbrev_buffer. --- bfd/dwarf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/dwarf2.c') 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, -- cgit v1.1