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 | 32c244d043cc58f53f45f8ec2313c4fc398a2766 (patch) | |
tree | 92393f8eae6ab9d8b52166c8a710fe2fd47b0d3b /bfd/format.c | |
parent | 1e9d54384f1551b77f083987d5c390e09343ebe0 (diff) | |
download | binutils-redhat-32c244d043cc58f53f45f8ec2313c4fc398a2766.tar.gz |
Only check associated vector if the matching_vector has been created.
Diffstat (limited to 'bfd/format.c')
-rw-r--r-- | bfd/format.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/format.c b/bfd/format.c index 655ccd9f08..6415b8d57b 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; |