2009-07-28  Jan Beulich  <jbeulich@novell.com>

	* archive.c (get_extended_arelt_filename): Remove redundant
	range check on index.
This commit is contained in:
Jan Beulich 2009-07-28 06:22:01 +00:00
parent 1035ad423e
commit 4ad4f3cb14
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-07-28 Jan Beulich <jbeulich@novell.com>
* archive.c (get_extended_arelt_filename): Remove redundant
range check on index.
2009-07-27 Doug Kwan <dougkwan@google.com>
* elf32-arm.c (stub_hash_newfunc): Initialize field output_name.

View File

@ -373,7 +373,7 @@ get_extended_arelt_filename (bfd *arch, const char *name, file_ptr *originp)
{
file_ptr origin = strtol (endp + 1, NULL, 10);
if (errno != 0 || index >= bfd_ardata (arch)->extended_names_size)
if (errno != 0)
{
bfd_set_error (bfd_error_malformed_archive);
return NULL;