diff options
author | Nick Clifton <nickc@redhat.com> | 2003-04-18 08:06:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-04-18 08:06:01 +0000 |
commit | 2dafa515d3ff6683f98268e20c8263261babb27d (patch) | |
tree | d23a49a7b918fa69feca73e8f5da74991cf98ef8 | |
parent | 95cc412766ae363df60a90debcd51e7bddcb2b26 (diff) | |
download | gdb-2dafa515d3ff6683f98268e20c8263261babb27d.tar.gz |
Only check associated vector if the matching_vector has been created.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/format.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1650199eb43..00042678430 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-04-18 Nick Clifton <nickc@redhat.com> + + * format.c (bfd_check_format_matches): Only check associated + vector if the matching_vector has been created. + 2003-04-15 Alexandre Oliva <aoliva@redhat.com> * dwarf2.c (_bfd_dwarf2_find_nearest_line): Fix typo in diff --git a/bfd/format.c b/bfd/format.c index 655ccd9f08f..6415b8d57bc 100644 --- a/bfd/format.c +++ b/bfd/format.c @@ -305,7 +305,9 @@ bfd_check_format_matches (abfd, format, matching) } } - if (match_count > 1 && bfd_associated_vector != NULL) + if (match_count > 1 + && bfd_associated_vector != NULL + && matching) { const bfd_target * const *assoc = bfd_associated_vector; |